Blame airsched.spec

71ed8b5
#
71ed8b5
%global mydocs __tmp_docdir
71ed8b5
#
71ed8b5
Name:           airsched
71ed8b5
%global sfname  air-sched
71ed8b5
Version:        0.1.2
71ed8b5
Release:        1%{?dist}
71ed8b5
71ed8b5
Summary:        C++ Simulated Airline Schedule Manager Library
71ed8b5
71ed8b5
Group:          System Environment/Libraries 
71ed8b5
License:        LGPLv2+
71ed8b5
URL:            http://sourceforge.net/projects/%{sfname}/
71ed8b5
Source0:        http://downloads.sourceforge.net/%{sfname}/%{name}-%{version}.tar.bz2
71ed8b5
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
71ed8b5
71ed8b5
BuildRequires:  cmake, python-devel
71ed8b5
BuildRequires:  boost-devel, soci-mysql-devel, zeromq-devel, readline-devel
71ed8b5
BuildRequires:  stdair-devel
71ed8b5
71ed8b5
71ed8b5
%description
71ed8b5
%{name} aims at providing a clean API and a simple implementation, as
71ed8b5
a C++ library, of an Airline Schedule Management System. It is intended
71ed8b5
to be used in simulated environments only: it is not designed to work
71ed8b5
in the real-world of Airline IT operations.
71ed8b5
71ed8b5
%{name} makes an extensive use of existing open-source libraries for
71ed8b5
increased functionality, speed and accuracy. In particular the
71ed8b5
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
71ed8b5
71ed8b5
Install the %{name} package if you need a library of basic C++ objects
71ed8b5
for Airline Schedule Management, mainly for simulation purpose.
71ed8b5
71ed8b5
%package        devel
71ed8b5
Summary:        Header files, libraries and development helper tools for %{name}
71ed8b5
Group:          Development/Libraries
71ed8b5
Requires:       %{name}%{?_isa} = %{version}-%{release}
71ed8b5
Requires:       pkgconfig
71ed8b5
71ed8b5
%description    devel
71ed8b5
This package contains the header files, shared libraries and
71ed8b5
development helper tools for %{name}. If you would like to develop
71ed8b5
programs using %{name}, you will need to install %{name}-devel.
71ed8b5
71ed8b5
%package        doc
71ed8b5
Summary:        HTML documentation for the %{name} library
71ed8b5
Group:          Documentation
71ed8b5
%if 0%{?fedora} || 0%{?rhel} > 5
71ed8b5
BuildArch:      noarch
71ed8b5
%endif
71ed8b5
BuildRequires:  tex(latex)
71ed8b5
BuildRequires:  doxygen, ghostscript
71ed8b5
71ed8b5
%description    doc
71ed8b5
This package contains HTML pages, as well as a PDF reference manual,
71ed8b5
for %{name}. All that documentation is generated thanks to Doxygen
71ed8b5
(http://doxygen.org). The content is the same as what can be browsed
71ed8b5
online (http://%{name}.org).
71ed8b5
71ed8b5
71ed8b5
%prep
71ed8b5
%setup -q
71ed8b5
71ed8b5
71ed8b5
%build
71ed8b5
%cmake .
71ed8b5
make %{?_smp_mflags}
71ed8b5
71ed8b5
%install
71ed8b5
rm -rf $RPM_BUILD_ROOT
71ed8b5
make install DESTDIR=$RPM_BUILD_ROOT
71ed8b5
71ed8b5
mkdir -p %{mydocs}
71ed8b5
mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs}
71ed8b5
rm -f %{mydocs}/html/installdox
71ed8b5
71ed8b5
%check
71ed8b5
ctest
71ed8b5
71ed8b5
%clean
71ed8b5
rm -rf $RPM_BUILD_ROOT
71ed8b5
71ed8b5
%post -p /sbin/ldconfig
71ed8b5
71ed8b5
%postun -p /sbin/ldconfig
71ed8b5
71ed8b5
71ed8b5
%files
71ed8b5
%defattr(-,root,root,-)
71ed8b5
%doc AUTHORS ChangeLog COPYING NEWS README
71ed8b5
%{_bindir}/%{name}
71ed8b5
%{_libdir}/lib%{name}.so.*
71ed8b5
%{_mandir}/man1/%{name}.1.*
71ed8b5
71ed8b5
%files devel
71ed8b5
%defattr(-,root,root,-)
71ed8b5
%{_includedir}/%{name}
71ed8b5
%{_bindir}/%{name}-config
71ed8b5
%{_libdir}/lib%{name}.so
71ed8b5
%{_libdir}/pkgconfig/%{name}.pc
71ed8b5
%{_datadir}/aclocal/%{name}.m4
71ed8b5
%dir %{_datadir}/%{name}
71ed8b5
%{_datadir}/%{name}/CMake
71ed8b5
%{_mandir}/man1/%{name}-config.1.*
71ed8b5
%{_mandir}/man3/%{name}-library.3.*
71ed8b5
71ed8b5
%files doc
71ed8b5
%defattr(-,root,root,-)
71ed8b5
%doc %{mydocs}/html
71ed8b5
%doc COPYING
71ed8b5
71ed8b5
71ed8b5
%changelog
71ed8b5
* Wed Oct 26 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.2-1
71ed8b5
- Upstream update
71ed8b5
71ed8b5
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.1-1
71ed8b5
- Upstream update
71ed8b5
- Took into account the feedback from various review requests (bugs #732205,
71ed8b5
  #728649, #732218)
71ed8b5
71ed8b5
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-1
71ed8b5
- First RPM release
71ed8b5