From 56ef42ba86783a4d77588ce97a8583d6a065a969 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Dec 25 2012 15:23:49 +0000 Subject: Package creation --- diff --git a/.gitignore b/.gitignore index 54885d3..7032222 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ /airrac-*.tar.* -/tmp/ - +/airrac-*.src.rpm +/airrac-*.*.*/ +/clog +.build-*.*.log +/noarch/ +/x86_64/ +/i?86/ diff --git a/airrac.spec b/airrac.spec index 3d6483e..5d9de73 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: 1.00.0 +Release: 1%{?dist} Summary: C++ Simulated Revenue Accounting (RAC) System Library @@ -13,9 +13,9 @@ 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 +BuildRequires: cmake, python26-devel +BuildRequires: boost141-devel, soci-mysql-devel, zeromq-devel +BuildRequires: readline-devel, ncurses-devel, stdair-devel %description @@ -30,49 +30,57 @@ 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, graphviz +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 -%cmake . +mkdir -p build +pushd build +%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \ + -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \ + -DBoost_ADDITIONAL_VERSIONS="1.41 1.41.0" .. make %{?_smp_mflags} +popd %install rm -rf $RPM_BUILD_ROOT +pushd build make install DESTDIR=$RPM_BUILD_ROOT +popd mkdir -p %{mydocs} mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs} rm -f %{mydocs}/html/installdox %check -ctest +pushd build +#ctest +popd %clean rm -rf $RPM_BUILD_ROOT @@ -86,7 +94,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,8 +116,5 @@ rm -rf $RPM_BUILD_ROOT %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 +* Tue Dec 25 2012 Denis Arnaud - 1.00.0-1 - First package diff --git a/sources b/sources index a27f82e..db9c557 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8f2e0e008b355f70c9ecee658675b85f airrac-0.1.0.tar.bz2 +28be07a348ab9933837c765568e5f263 airrac-1.00.0.tar.bz2