70e1c5
# asio only ships headers, so no debuginfo package is needed
70e1c5
%global debug_package %{nil}
70e1c5
70e1c5
%global commit 28d9b8d6df708024af5227c551673fdb2519f5bf
70e1c5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
70e1c5
70e1c5
Name:           asio
70e1c5
Version:        1.10.8
70e1c5
Release:        7%{?dist}
70e1c5
Summary:        A cross-platform C++ library for network programming
70e1c5
70e1c5
Group:          System Environment/Libraries
70e1c5
License:        Boost
70e1c5
URL:            https://think-async.com
70e1c5
Source0:        https://github.com/chriskohlhoff/%{name}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
70e1c5
70e1c5
%if 0%{?rhel} == 5
70e1c5
%endif
70e1c5
70e1c5
BuildRequires:  autoconf
70e1c5
BuildRequires:  automake
70e1c5
BuildRequires:  openssl-devel
70e1c5
BuildRequires:  boost-devel
70e1c5
BuildRequires:  perl-generators
70e1c5
70e1c5
%description
70e1c5
The asio package contains a cross-platform C++ library for network programming
70e1c5
that provides developers with a consistent asynchronous I/O model using a
70e1c5
modern C++ approach.
70e1c5
70e1c5
%package devel
70e1c5
Summary:        Header files for asio
70e1c5
Group:          Development/Libraries
70e1c5
Requires:       openssl-devel
70e1c5
Requires:       boost-devel
70e1c5
70e1c5
%description devel
70e1c5
Header files you can use to develop applications with asio.
70e1c5
70e1c5
The asio package contains a cross-platform C++ library for network programming
70e1c5
that provides developers with a consistent asynchronous I/O model using a
70e1c5
modern C++ approach.
70e1c5
70e1c5
%prep
70e1c5
%setup -qn %{name}-%{commit}/%{name}
70e1c5
70e1c5
%build
70e1c5
./autogen.sh
70e1c5
%configure
70e1c5
make %{?_smp_mflags}
70e1c5
70e1c5
%install
70e1c5
make install DESTDIR=%{buildroot}
70e1c5
70e1c5
%files devel
70e1c5
%{!?_licensedir:%global license %doc}
70e1c5
%doc src/doc/*
70e1c5
%license LICENSE_1_0.txt
70e1c5
%dir %{_includedir}/asio
70e1c5
%{_includedir}/asio/*
70e1c5
%{_includedir}/asio.hpp
70e1c5
70e1c5
%changelog
70e1c5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-7
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
70e1c5
70e1c5
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-6
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
70e1c5
70e1c5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-5
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
70e1c5
70e1c5
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 1.10.8-4
70e1c5
- Rebuilt for Boost 1.64
70e1c5
70e1c5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.8-3
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70e1c5
70e1c5
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 1.10.8-2
70e1c5
- Rebuilt for Boost 1.63
70e1c5
70e1c5
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.8-1
70e1c5
- Update to 1.10.8
70e1c5
70e1c5
* Tue Sep 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.7-1
70e1c5
- Update to 1.10.7
70e1c5
70e1c5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.6-7
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
70e1c5
70e1c5
* Thu Jan 14 2016 Jonathan Wakely <jwakely@redhat.com> - 1.10.6-6
70e1c5
- Rebuilt for Boost 1.60
70e1c5
70e1c5
* Sat Jan 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-5
70e1c5
- Remove useless pieces of the spec
70e1c5
- Conform to more recent SPEC style
70e1c5
- Fix date in changelog that was giving warnings
70e1c5
70e1c5
* Sat Jan 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-4
70e1c5
- Move from define to global
70e1c5
70e1c5
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1.10.6-3
70e1c5
- Rebuilt for Boost 1.59
70e1c5
70e1c5
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.6-2
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
70e1c5
70e1c5
* Sun Jul 26 2015 Fabio Alessandro Locati <fale@fedoraproject.org> -1.10.6-1
70e1c5
- Update to 1.10.6 version
70e1c5
70e1c5
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.10.4-5
70e1c5
- rebuild for Boost 1.58
70e1c5
70e1c5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4-4
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
70e1c5
70e1c5
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 1.10.4-3
70e1c5
- Rebuild for boost 1.57.0
70e1c5
70e1c5
* Sat Oct 11 2014 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.4-2
70e1c5
- Forgot to update the commit id
70e1c5
70e1c5
* Sat Oct 11 2014 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.4-1
70e1c5
- Update to 1.10.4 version
70e1c5
70e1c5
* Sun Aug 10 2014 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.3-1
70e1c5
- Update to 1.10.3 version
70e1c5
70e1c5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-9
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
70e1c5
70e1c5
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.4.8-8
70e1c5
- Rebuild for boost 1.55.0
70e1c5
70e1c5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-7
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70e1c5
70e1c5
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1.4.8-6
70e1c5
- Rebuild for boost 1.54.0
70e1c5
70e1c5
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.4.8-5
70e1c5
- Rebuild for Boost-1.53.0
70e1c5
70e1c5
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.4.8-4
70e1c5
- Rebuild for Boost-1.53.0
70e1c5
70e1c5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-3
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
70e1c5
70e1c5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
70e1c5
70e1c5
* Wed Aug  3 2011 Peter Robinson <pbrobinson@gmail.com> - 1.4.8-1
70e1c5
- Update to 1.4.8 bugfix release
70e1c5
70e1c5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-4
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
70e1c5
70e1c5
* Fri Jun 18 2010 Dan HorĂ¡k <dan[at]danny.cz> 1.4.1-3
70e1c5
- fix FTBFS #538893 and #599857 (patch by Petr Machata)
70e1c5
70e1c5
* Mon Jul 27 2009 Marc Maurer <uwog@uwog.net> 1.4.1-2
70e1c5
- The tarball is now a gzip archive
70e1c5
70e1c5
* Mon Jul 27 2009 Marc Maurer <uwog@uwog.net> 1.4.1-1
70e1c5
- New upstream release
70e1c5
70e1c5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
70e1c5
70e1c5
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
70e1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
70e1c5
70e1c5
* Thu Dec 25 2008 Marc Maurer <uwog@uwog.net> 1.2.0-1
70e1c5
- New upstream release
70e1c5
70e1c5
* Sun Apr 06 2008 Marc Maurer <uwog@uwog.net> 1.0.0-2
70e1c5
- Upstream removed the executable permissions on the docs
70e1c5
70e1c5
* Sun Apr 06 2008 Marc Maurer <uwog@uwog.net> 1.0.0-1
70e1c5
- New upstream release
70e1c5
70e1c5
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.8-8
70e1c5
- Autorebuild for GCC 4.3
70e1c5
70e1c5
* Sun Dec 02 2007 Marc Maurer <uwog@uwog.net> 0.3.8-7
70e1c5
- Rebuild to include a tarball with original timestamps
70e1c5
70e1c5
* Thu Nov 29 2007 Marc Maurer <uwog@uwog.net> 0.3.8-6
70e1c5
- Use release %%{?dist} tag
70e1c5
- Move BuildRequires to the main package
70e1c5
- Preserve timestamps
70e1c5
- Remove spurious executable permissions from documentation
70e1c5
70e1c5
* Wed Nov 28 2007 Marc Maurer <uwog@uwog.net> 0.3.8-5
70e1c5
- Don't require a nonexisting %%{name} package for -devel
70e1c5
- Add openssl-devel and boost-devel to the buildRequires list
70e1c5
- Remove unused post/postun sections for now
70e1c5
- Fix -devel description
70e1c5
- Use %%{version} in source URL
70e1c5
- Add COPYING to the doc section
70e1c5
- Preserve timestamps of installed files
70e1c5
- Use %%defattr(-,root,root,-)
70e1c5
- Include developer documentation
70e1c5
- Move the make call to the %%check section
70e1c5
70e1c5
* Sun Nov 25 2007 Marc Maurer <uwog@uwog.net> 0.3.8-4
70e1c5
- Don't use BA noarch
70e1c5
70e1c5
* Fri Nov 23 2007 Marc Maurer <uwog@uwog.net> 0.3.8-3
70e1c5
- Move the license file to the -devel package, so no
70e1c5
  main package will be created for now
70e1c5
- Added BuildArch: noarch
70e1c5
70e1c5
* Fri Nov 23 2007 Marc Maurer <uwog@uwog.net> 0.3.8-2
70e1c5
- Make BuildRoot fedora packaging standard compliant
70e1c5
- Disable building of debuginfo packages
70e1c5
- Include full source URL
70e1c5
70e1c5
* Wed Nov 21 2007 Marc Maurer <uwog@uwog.net> 0.3.8-1
70e1c5
- Initial spec file