## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global libapogee_pkg indi-3rdparty-libapogee %global libfli_pkg indi-3rdparty-libfli %global indi_version 1.9.9 Name: indi-3rdparty-libraries Version: 1.9.9 Release: %autorelease Summary: INDI 3rdparty libraries License: LGPLv2+ URL: http://indilib.org # Tar is generated from the huge all-in-one tar from INDI # by using ./generate-libraries-tarball.sh %%{version} # The main source from upstream is at # https://github.com/indilib/indi-3rdparty/archive/refs/tags/v%%{version}.tar.gz Source0: %{name}-%{version}.tar.xz Source1: generate-libraries-tarball.sh # Upstream injects -fPIE flag, let Fedora choose Patch: modify_cmake_common_flags.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libindi) = %{version} # We want this metapackage to install all libraries at once. # Just use weak dependencies to avoid possible errors. Recommends: %{libapogee_pkg}%{?_isa} = %{version}-%{release} Recommends: %{libfli_pkg}%{?_isa} = %{version}-%{release} %description This is a metapackage for installing all INDI 3rdparty libraries at once. You probably don't want to install everything, but just pick the libraries you need from the appropriate subpackage. We currently ship the following libraries: - %{libapogee_pkg} - %{libfli_pkg} %package -n %{libapogee_pkg} License: GPLv2+ and MPLv2.0 Summary: Library for Apogee CCD Cameras Provides: libapogee = 1:%{version}-%{release} Obsoletes: libapogee <= 1:1.9.3-2 %description -n %{libapogee_pkg} Apogee library is used by applications to control Apogee CCDs. %package -n %{libapogee_pkg}-devel Summary: Development files %{libapogee_pkg} Requires: %{libapogee_pkg}%{?_isa} = %{version}-%{release} Provides: libapogee-devel = 1:%{version}-%{release} Obsoletes: libapogee-devel <= 1:1.9.3-2 %description -n %{libapogee_pkg}-devel These are the header files needed to develop a %{libapogee_pkg} application %package -n %{libfli_pkg} License: BSD Summary: Library for FLI CCD Camera & Filter Wheels Provides: libfli = 1:%{version}-%{release} Obsoletes: libfli <= 1:1.9.3-2 %description -n %{libfli_pkg} Finger Lakes Instrument library is used by applications to control FLI line of CCDs and Filter wheels %package -n %{libfli_pkg}-devel Summary: Development files %{libfli_pkg} Requires: %{libfli_pkg}%{?_isa} = %{version}-%{release} Provides: libfli-devel = 1:%{version}-%{release} Obsoletes: libfli-devel <= 1:1.9.3-2 %description -n %{libfli_pkg}-devel These are the header files needed to develop a %{libfli_pkg} application %prep %autosetup -p1 # For Fedora we want to put udev rules in %%{_udevrulesdir} find . -mindepth 2 -name CMakeLists.txt \ -exec echo 'Processing {}' \; \ -exec sed -i 's#\/\(etc\|lib\)\/udev\/rules\.d#%{_udevrulesdir}#g' {} \; %build %cmake -DBUILD_LIBS=ON \ -DWITH_APOGEE=ON \ -DWITH_ASICAM=OFF \ -DWITH_ATIK=OFF \ -DWITH_FISHCAMP=OFF \ -DWITH_FLI=ON \ -DWITH_MI=OFF \ -DWITH_INOVAPLX=OFF \ -DWITH_QHY=OFF \ -DWITH_QSI=OFF \ -DWITH_SBIG=OFF \ -DWITH_PENTAX=OFF \ -DWITH_AHP_XC=OFF \ -DWITH_TOUPBASE=OFF \ -DWITH_SVBONY=OFF \ -DWITH_PLAYERONE=OFF \ %cmake_build %install %cmake_install %check # no tests provided %files %license LICENSE %doc README.md %files -n %{libapogee_pkg} %license libapogee/LICENSE %doc libapogee/README %{_libdir}/libapogee.so.3* # The following are config files not intended to be modified by users # I've asked upstream to move them in a more appropriate place %config %{_sysconfdir}/Apogee %{_udevrulesdir}/99-apogee.rules %files -n %{libapogee_pkg}-devel %{_includedir}/libapogee %{_libdir}/libapogee.so %files -n %{libfli_pkg} %license libfli/LICENSE.BSD %{_libdir}/libfli.so.2* %{_udevrulesdir}/99-fli.rules %files -n %{libfli_pkg}-devel %{_includedir}/libfli.h %{_libdir}/libfli.so %changelog * Thu Jan 19 2023 Fedora Release Engineering 1.9.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Dec 04 2022 Mattia Verga 1.9.9-1 - Update to 1.9.9 (fedora#2149795) * Tue Oct 04 2022 Mattia Verga 1.9.8-1 - Update to 1.9.8 * Sat Aug 06 2022 Mattia Verga 1.9.7-1 - Update to 1.9.7 * Thu Jul 21 2022 Fedora Release Engineering 1.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 24 2022 Mattia Verga 1.9.6-1 - Update to 1.9.6 * Mon Mar 21 2022 Mattia Verga - 1.9.5-1 - Upgrade to 1.9.5 * Sat Feb 05 2022 Mattia Verga - 1.9.4-1 - Upgrade to 1.9.4 - Correct libfli provides/obsoletes * Sat Jan 29 2022 Mattia Verga - 1.9.3-5 - correct libapogee license * Tue Jan 18 2022 Mattia Verga - 1.9.3-4 - Enable libfli build - Add patch for gcc12 * Sun Jan 09 2022 Mattia Verga - 1.9.3-3 - Override some builder and linker flags * Sat Jan 08 2022 Mattia Verga - 1.9.3-2 - Initial packaging