From 066e71a9a63ef3a30a505865c3706edfd930c149 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Sun, 21 Aug 2011 02:18:34 +0200 Subject: [PATCH 1/5] First RPM release for that package. --- .gitignore | 3 ++ airrac.spec | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 119 insertions(+) create mode 100644 airrac.spec diff --git a/.gitignore b/.gitignore index e69de29..54885d3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/airrac-*.tar.* +/tmp/ + diff --git a/airrac.spec b/airrac.spec new file mode 100644 index 0000000..3d6483e --- /dev/null +++ b/airrac.spec @@ -0,0 +1,115 @@ +# +%global mydocs __tmp_docdir +# +Name: airrac +Version: 0.1.0 +Release: 2%{?dist} + +Summary: C++ Simulated Revenue Accounting (RAC) System Library + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://sourceforge.net/projects/%{name}/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: cmake, python-devel +BuildRequires: boost-devel, soci-mysql-devel, zeromq-devel +BuildRequires: stdair-devel + + +%description +%{name} is a C++ library of airline revenue accounting classes and +functions, mainly targeting simulation purposes. + +%{name} makes an extensive use of existing open-source libraries for +increased functionality, speed and accuracy. In particular the +Boost (C++ Standard Extensions: http://www.boost.org) library is used. + +Install the %{name} package if you need a library of basic C++ objects +for Airline Revenue Accounting, mainly for simulation purpose. + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains the header files, static libraries and +development documentation for %{name}. If you would like to develop +programs using %{name}, you will need to install %{name}-devel. + +%package doc +Summary: HTML documentation for the %{name} library +Group: Documentation +%{?fedora:BuildArch: noarch} +BuildRequires: tex(latex) +BuildRequires: doxygen, ghostscript, graphviz + +%description doc +This package contains the documentation in the HTML format of the %{name} +library. The documentation is the same as at the %{name} web page. + + +%prep +%setup -q +# Fix some permissions and formats +chmod -x AUTHORS ChangeLog COPYING NEWS README +find . -type f -name '*.[hc]pp' -exec chmod -x {} \; + + +%build +%cmake . +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +mkdir -p %{mydocs} +mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs} +rm -f %{mydocs}/html/installdox + +%check +ctest + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_bindir}/%{name} +%{_libdir}/lib*.so.* +%{_mandir}/man1/%{name}.1.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/%{name} +%{_bindir}/%{name}-config +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_datadir}/aclocal/%{name}.m4 +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/CMake +%{_mandir}/man1/%{name}-config.1.* +%{_mandir}/man3/%{name}-library.3.* + +%files doc +%defattr(-,root,root,-) +%doc %{mydocs}/html +%doc COPYING + + +%changelog +* Fri Aug 19 2011 Denis Arnaud 0.1.0-2 +- Took into account the feedback from the package review (#728649) + +* Fri Aug 05 2011 Denis Arnaud 0.1.0-1 +- First package diff --git a/sources b/sources index e69de29..a27f82e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8f2e0e008b355f70c9ecee658675b85f airrac-0.1.0.tar.bz2 From e6a7547f480973d82b128f85ebb0eed8762c3252 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Sun, 21 Aug 2011 02:48:46 +0200 Subject: [PATCH 2/5] Upstream integration --- .gitignore | 1 + airrac.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 54885d3..87eeb99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /airrac-*.tar.* /tmp/ +clog diff --git a/airrac.spec b/airrac.spec index 3d6483e..1fd912a 100644 --- a/airrac.spec +++ b/airrac.spec @@ -2,8 +2,8 @@ %global mydocs __tmp_docdir # Name: airrac -Version: 0.1.0 -Release: 2%{?dist} +Version: 0.2.0 +Release: 1%{?dist} Summary: C++ Simulated Revenue Accounting (RAC) System Library @@ -108,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Aug 20 2011 Denis Arnaud 0.2.0-1 +- Upstream integration + * Fri Aug 19 2011 Denis Arnaud 0.1.0-2 - Took into account the feedback from the package review (#728649) diff --git a/sources b/sources index a27f82e..fa86f49 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8f2e0e008b355f70c9ecee658675b85f airrac-0.1.0.tar.bz2 +ac5644cb501887b6133350e0aa6758fe airrac-0.2.0.tar.bz2 From 2bb8d53fb1292a66c8dbdb36689c148b1154a83a Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Sun, 21 Aug 2011 02:50:42 +0200 Subject: [PATCH 3/5] Corrected the change-log comment. --- airrac.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airrac.spec b/airrac.spec index 1fd912a..e88fd50 100644 --- a/airrac.spec +++ b/airrac.spec @@ -109,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Aug 20 2011 Denis Arnaud 0.2.0-1 -- Upstream integration +- Upstream update * Fri Aug 19 2011 Denis Arnaud 0.1.0-2 - Took into account the feedback from the package review (#728649) From f389aa6f4e4198961c4f8abcfd550c40baa9fcb6 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Sun, 21 Aug 2011 03:34:25 +0200 Subject: [PATCH 4/5] [Doc] Removed the need for Graphviz (and the class diagrams are no longer generated with it, as it seems to produce unstable RPM builds). --- airrac.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airrac.spec b/airrac.spec index e88fd50..d1f8e1e 100644 --- a/airrac.spec +++ b/airrac.spec @@ -45,7 +45,7 @@ Summary: HTML documentation for the %{name} library Group: Documentation %{?fedora:BuildArch: noarch} BuildRequires: tex(latex) -BuildRequires: doxygen, ghostscript, graphviz +BuildRequires: doxygen, ghostscript %description doc This package contains the documentation in the HTML format of the %{name} diff --git a/sources b/sources index fa86f49..61d6fb4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ac5644cb501887b6133350e0aa6758fe airrac-0.2.0.tar.bz2 +0e1232ad787cfa7ac73a038bffe7f170 airrac-0.2.0.tar.bz2 From 7fd7d9d5393df8d698766562d388e421a7b3a581 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Wed, 31 Aug 2011 17:21:43 +0300 Subject: [PATCH 5/5] Upstream update --- airrac.spec | 30 +++++++++++++++++------------- sources | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/airrac.spec b/airrac.spec index d1f8e1e..56ae9cb 100644 --- a/airrac.spec +++ b/airrac.spec @@ -2,7 +2,7 @@ %global mydocs __tmp_docdir # Name: airrac -Version: 0.2.0 +Version: 0.1.2 Release: 1%{?dist} Summary: C++ Simulated Revenue Accounting (RAC) System Library @@ -30,33 +30,32 @@ Install the %{name} package if you need a library of basic C++ objects for Airline Revenue Accounting, mainly for simulation purpose. %package devel -Summary: Header files, libraries and development documentation for %{name} +Summary: Header files, libraries and development helper tools for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig %description devel -This package contains the header files, static libraries and -development documentation for %{name}. If you would like to develop +This package contains the header files, shared libraries and +development helper tools for %{name}. If you would like to develop programs using %{name}, you will need to install %{name}-devel. -%package doc +%package doc Summary: HTML documentation for the %{name} library Group: Documentation %{?fedora:BuildArch: noarch} BuildRequires: tex(latex) BuildRequires: doxygen, ghostscript -%description doc -This package contains the documentation in the HTML format of the %{name} -library. The documentation is the same as at the %{name} web page. +%description doc +This package contains HTML pages, as well as a PDF reference manual, +for %{name}. All that documentation is generated thanks to Doxygen +(http://doxygen.org). The content is the same as what can be browsed +online (http://%{name}.org). %prep %setup -q -# Fix some permissions and formats -chmod -x AUTHORS ChangeLog COPYING NEWS README -find . -type f -name '*.[hc]pp' -exec chmod -x {} \; %build @@ -86,7 +85,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/%{name} -%{_libdir}/lib*.so.* +%{_libdir}/lib%{name}.so.* %{_mandir}/man1/%{name}.1.* %files devel @@ -108,11 +107,16 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Sat Aug 20 2011 Denis Arnaud 0.2.0-1 +* Tue Aug 30 2011 Denis Arnaud 0.1.2-1 - Upstream update +* Sat Aug 20 2011 Denis Arnaud 0.1.1-1 +- Removed the need for Graphviz: the class diagrams are no longer + built with it + * Fri Aug 19 2011 Denis Arnaud 0.1.0-2 - Took into account the feedback from the package review (#728649) * Fri Aug 05 2011 Denis Arnaud 0.1.0-1 - First package + diff --git a/sources b/sources index 61d6fb4..b55b567 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0e1232ad787cfa7ac73a038bffe7f170 airrac-0.2.0.tar.bz2 +82be56b5612c606dc24ace4ac5e742e7 airrac-0.1.2.tar.bz2