From 712653c8d7a2e8a6164b880e954b7556599b34e3 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Tue, 14 Nov 2023 16:09:47 +0100 Subject: [PATCH] Modernized the spec file --- sources | 2 +- travelccm.spec | 36 ++++++++++++------------------------ 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/sources b/sources index d552597..8a8e86d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (travelccm-1.00.8.tar.gz) = 363af9858a9429cd70263efec042e8fb086f20419e932386bbd2dbeadaa62120b601f84427998b147f584863eab77e26ed318b4c102dd413c0eac305fb146a4e +SHA512 (travelccm-1.00.8.tar.gz) = 71b438a5d26134a172b9b5ab88baf8172cc80416070dfdb82debc460130ad77a86b23be37d50b2f6e6de47625e40c606b35df466e4cdffe694818f22884489f1 diff --git a/travelccm.spec b/travelccm.spec index 7a23077..92754da 100644 --- a/travelccm.spec +++ b/travelccm.spec @@ -1,23 +1,21 @@ # Name: travelccm -%global sfname travel-ccm Version: 1.00.8 -Release: 2%{?dist} +Release: %autorelease Summary: C++ Travel Customer Choice Model (CCM) Library -License: LGPLv2+ +License: LGPL-2.1-or-later URL: https://github.com/airsim/%{name} -Source0: %{url}/archive/%{name}-%{version}.tar.gz +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: boost-devel BuildRequires: soci-mysql-devel BuildRequires: soci-sqlite3-devel -BuildRequires: readline-devel -BuildRequires: stdair-devel - +BuildRequires: pkgconfig(readline) +BuildRequires: pkgconfig(stdair) %description %{name} aims at providing a clean API, and the corresponding @@ -69,13 +67,12 @@ BuildRequires: ghostscript %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). +(https://doxygen.org). The content is the same as what can be browsed +online (https://github.com/airsim/%{name}). %prep -%autosetup -n %{name}-%{name}-%{version} - +%autosetup %build %cmake @@ -103,30 +100,21 @@ rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS} %{_mandir}/man1/%{name}.1.* %files devel -%{_includedir}/%{name} +%{_includedir}/%{name}/ %{_bindir}/%{name}-config %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_datadir}/aclocal/%{name}.m4 %dir %{_datadir}/%{name} -%{_datadir}/%{name}/CMake +%{_datadir}/%{name}/CMake/ %{_mandir}/man1/%{name}-config.1.* %{_mandir}/man3/%{name}-library.3.* %files doc -%doc %{_docdir}/%{name}/html -%doc COPYING +%doc %{_docdir}/%{name}/ +%license COPYING %changelog -* Sat Jul 22 2023 Fedora Release Engineering - 1.00.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Mon May 01 2023 Denis Arnaud - 1.00.8-1 -- Upstream upgrade - -* Mon Feb 20 2023 Jonathan Wakely - 1.00.7-4 -- Rebuilt for Boost 1.81 - %autochangelog