Blame airsched.spec

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