libindi/libindi.spec

390 lines
12 KiB
RPMSpec
Raw Normal View History

%global forgeurl https://github.com/indilib/indi/
2021-05-13 11:29:28 +00:00
# Define boolean to quickly set option and dependencies for
# building QT5 client
%global build_qt5_client 1
# Define boolean to quickly set option and dependencies for
# unit tests
2022-01-06 16:51:40 +00:00
# s390x test fail https://github.com/indilib/indi/issues/1359
%ifarch s390x
%global build_tests 0
%else
2022-01-06 16:09:20 +00:00
%global build_tests 1
2022-01-06 16:51:40 +00:00
%endif
2021-05-13 11:29:28 +00:00
2009-02-09 15:58:11 +00:00
Name: libindi
2022-01-06 16:09:20 +00:00
Version: 1.9.3
Release: 3%{?dist}
2009-02-09 15:58:11 +00:00
Summary: Instrument Neutral Distributed Interface
License: LGPLv2+ and GPLv2+
# See COPYRIGHT file for a description of the licenses and files covered
2009-02-09 15:58:11 +00:00
2021-05-13 11:29:28 +00:00
%forgemeta -i
URL: http://www.indilib.org
2022-01-06 16:09:20 +00:00
Source0: %{forgesource}
2009-02-09 15:58:11 +00:00
2017-10-08 07:23:18 +00:00
BuildRequires: cmake
2015-09-07 09:13:23 +00:00
BuildRequires: libfli-devel
BuildRequires: libnova-devel
BuildRequires: systemd
2017-10-08 07:23:18 +00:00
BuildRequires: pkgconfig(cfitsio)
2021-05-13 11:29:28 +00:00
BuildRequires: pkgconfig(fftw3)
2017-10-08 07:23:18 +00:00
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(zlib)
2009-02-09 15:58:11 +00:00
2021-05-13 11:29:28 +00:00
%if 0%{?build_qt5_client}
BuildRequires: pkgconfig(Qt5Network)
%global qt5_client ON
%else
%global qt5_client OFF
%endif
%if 0%{?build_tests}
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(gmock)
%global tests ON
%else
%global tests OFF
%endif
2018-01-02 12:16:51 +00:00
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
2009-02-09 15:58:11 +00:00
%description
INDI is a distributed control protocol designed to operate
astronomical instrumentation. INDI is small, flexible, easy to parse,
and scalable. It supports common DCS functions such as remote control,
data acquisition, monitoring, and a lot more.
2018-01-02 12:16:51 +00:00
2009-02-09 15:58:11 +00:00
%package devel
Summary: Libraries, includes, etc. used to develop an application with %{name}
2018-01-02 12:16:51 +00:00
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
2017-10-07 17:48:53 +00:00
Requires: %{name}-static%{?_isa} = %{version}-%{release}
2009-02-09 15:58:11 +00:00
%description devel
These are the header files needed to develop a %{name} application
2018-01-02 12:16:51 +00:00
%package libs
Summary: INDI shared libraries
%description libs
These are the shared libraries of INDI.
%package static
Summary: Static libraries, includes, etc. used to develop an application with %{name}
2018-01-02 12:16:51 +00:00
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description static
Static library needed to develop a %{name} application
2009-02-09 15:58:11 +00:00
%prep
%forgesetup
2022-01-06 16:09:20 +00:00
2021-05-13 11:29:28 +00:00
# For Fedora we want to put udev rules in %%{_udevrulesdir}
2015-09-07 09:13:23 +00:00
sed -i 's|/lib/udev/rules.d|%{_udevrulesdir}|g' CMakeLists.txt
chmod -x drivers/telescope/pmc8driver.h
chmod -x drivers/telescope/pmc8driver.cpp
2009-02-09 15:58:11 +00:00
%build
2020-07-08 22:13:28 +00:00
# This package tries to mix and match PIE and PIC which is wrong and will
# trigger link errors when LTO is enabled.
# Disable LTO
%define _lto_cflags %{nil}
2021-05-13 11:29:28 +00:00
%cmake \
-DINDI_BUILD_QT5_CLIENT="%{qt5_client}" \
-DINDI_BUILD_UNITTESTS="%{tests}"
%cmake_build
2009-02-09 15:58:11 +00:00
%install
%cmake_install
2021-05-13 11:29:28 +00:00
%check
%if 0%{?build_tests}
2022-01-06 16:09:20 +00:00
%ctest --test-dir test
2021-05-13 11:29:28 +00:00
%endif
2009-02-09 15:58:11 +00:00
%files
2015-09-07 09:13:23 +00:00
%license COPYING.BSD COPYING.GPL COPYING.LGPL COPYRIGHT LICENSE
2018-05-26 10:39:08 +00:00
%doc AUTHORS ChangeLog NEWS README
2009-02-09 15:58:11 +00:00
%{_bindir}/*
%{_datadir}/indi
2015-09-07 09:13:23 +00:00
%{_udevrulesdir}/*.rules
2009-02-09 15:58:11 +00:00
2018-01-02 12:16:51 +00:00
%files libs
%license COPYING.BSD COPYING.GPL COPYING.LGPL COPYRIGHT LICENSE
%{_libdir}/*.so.*
%{_libdir}/indi/MathPlugins
2009-02-09 15:58:11 +00:00
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files static
%{_libdir}/*.a
2009-02-09 15:58:11 +00:00
%changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-06 16:51:40 +00:00
* Thu Jan 06 2022 Mattia Verga <mattia.verga@protonmail.com> - 1.9.3-2
- Disable tests on s390x
2022-01-06 16:09:20 +00:00
* Thu Jan 06 2022 Mattia Verga <mattia.verga@protonmail.com> - 1.9.3-1
- Upgrade to 1.9.3
- Remove unneeded patches
- Fix and enable tests
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-13 11:29:28 +00:00
* Thu May 13 2021 Mattia Verga <mattia.verga@protonmail.com> - 1.9.0-1
- Upgrade to 1.9.0
- Added options to build qt5 client and unit tests
- Remove %%ldconfig_scriptlets macro
* Tue Feb 02 2021 Christian Dersch <lupinix@mailbox.org> - 1.8.6-4
- Rebuilt for libcfitsio.so.7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-12-04 16:28:50 +00:00
* Fri Dec 04 2020 Jeff Law <law@redhat.com> - 1.8.6-2
- Fix missing #includes for gcc-11
2020-08-24 18:43:15 +00:00
* Mon Aug 24 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 1.8.6-1
- New upstream source (1.8.6)
* Tue Aug 18 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 1.8.5-4
- Fix cmake out-of-source-build (bz #1864002)
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jul 09 2020 Sergio Pascual <sergiopr@fedoraproject.org> 1.8.5-1
- New upstream source (1.8.5)
2020-07-08 22:13:28 +00:00
* Wed Jul 08 2020 Jeff Law <law@redhat.com> 1.8.1-4
- Disable LTO
2020-03-01 23:43:42 +00:00
* Sun Mar 01 2020 Sergio Pascual <sergiopr@fedoraproject.org> 1.8.1-3
- Patch stime in arm (bz#1799588)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-10-20 11:23:56 +00:00
* Sun Oct 20 2019 Christian Dersch <lupinix@fedoraproject.org> - 1.8.1-1
- new version
2019-08-20 20:06:24 +00:00
* Tue Aug 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.7.7-3
- Rebuilt for GSL 2.6.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-04-28 09:06:58 +00:00
* Sun Apr 28 2019 Christian Dersch <lupinix@mailbox.org> - 1.7.7-1
- new version
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jan 23 2019 Björn Esser <besser82@fedoraproject.org> - 1.7.4-3
- Append curdir to CMake invokation. (#1668512)
2018-07-31 12:54:31 +00:00
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.7.4-2
- Rebuild with fixed binutils
2018-07-29 11:59:22 +00:00
* Sun Jul 29 2018 Christian Dersch <lupinix@mailbox.org> - 1.7.4-1
- new version
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 21 2018 Sergio Pascual <sergiopr@fedoraproject.org> 1.7.2-2
- Patch udev rule to remove plugdev (bz #1577332)
2018-05-26 10:23:33 +00:00
* Sat May 26 2018 Christian Dersch <lupinix@mailbox.org> - 1.7.2-1
- new version
* Fri Feb 23 2018 Christian Dersch <lupinix@mailbox.org> - 1.6.2-3
- rebuilt for cfitsio 3.420 (so version bump)
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-08 14:57:20 +00:00
* Mon Jan 08 2018 Christian Dersch <lupinix@mailbox.org> - 1.6.2-1
- new version
2018-01-08 12:26:31 +00:00
* Mon Jan 08 2018 Christian Dersch <lupinix@mailbox.org> - 1.6.1-1
- new version
2018-01-02 12:16:51 +00:00
* Tue Jan 02 2018 Christian Dersch <lupinix@fedoraproject.org> - 1.6.0-1
- new version
- split shared libraries into -libs subpackage, to be multiarch clean
2017-10-07 17:40:27 +00:00
* Sat Oct 07 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.0-1
- new version
2017-08-05 11:17:01 +00:00
* Sat Aug 05 2017 Christian Dersch <lupinix@mailbox.org> - 1.4.1-4
- Rebuild (gsl)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-27 14:06:33 +00:00
* Mon Feb 27 2017 Christian Dersch <lupinix@mailbox.org> - 1.4.1-1
- new version
2017-02-26 11:36:26 +00:00
* Sun Feb 26 2017 Christian Dersch <lupinix@mailbox.org> - 1.4.0-1
- new version
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-12-15 12:38:12 +00:00
* Thu Dec 15 2016 derschc <lupinix@mailbox.org> - 1.3.1-1
- new version
2016-05-07 07:07:43 +00:00
* Sat May 07 2016 Christian Dersch <lupinix@mailbox.org> - 1.2.0-3
- Unified spec for Fedora and EPEL
2016-02-22 17:00:28 +00:00
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.0-2
- Rebuild for gsl 2.1
2016-02-02 11:10:53 +00:00
* Tue Feb 02 2016 Christian Dersch <lupinix@mailbox.org> - 1.2.0-1
- new version
2015-09-07 09:13:23 +00:00
* Mon Sep 07 2015 Christian Dersch <lupinix@fedoraproject.org> 1.1.0-1
- New upstream source (1.1.0)
- New BR: curl-devel
- New BR: systemd (for udevrulesdir macro)
2015-04-14 21:03:32 +00:00
2015-02-23 15:00:04 +00:00
* Mon Feb 23 2015 Sergio Pascual <sergiopr@fedoraproject.org> 1.0.0-1
- New upstream source (1.0.0)
* Mon Oct 06 2014 Sergio Pascual <sergiopr@fedoraproject.org> 0.9.9-1
- New upstream source (0.9.9)
2015-02-23 15:00:04 +00:00
- Removed patches ported upstream
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-28 18:58:26 +00:00
* Mon Jul 28 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.8.1-6
- rebuild (libnova)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-12 11:46:01 +00:00
* Mon May 12 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> 0.9.8.1-4
- Add AArch64 definitions where needed.
* Fri May 09 2014 Sergio Pascual <sergiopr@fedoraproject.org> 0.9.8.1-3
- Plugin directory has to be arch-dependent
2014-04-29 23:25:17 +00:00
* Sun Apr 27 2014 Christian Dersch <chrisdersch@gmail.com> 0.9.8.1-2
- Fix wrong upstream version
2014-04-23 22:03:44 +00:00
* Thu Apr 24 2014 Sergio Pascual <sergiopr@fedoraproject.org> 0.9.8.1-1
- New upstream source (0.9.8.1)
2013-12-03 10:49:56 +00:00
* Tue Dec 03 2013 Sergio Pascual <sergiopr@fedoraproject.org> 0.9.7-1
- New upstream source (0.9.7)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-17 14:15:10 +00:00
* Wed Jul 17 2013 Sergio Pascual <sergiopr@fedoraproject.org> 0.9.6-5
- rebuild (cfitsio 3.350)
2013-03-22 14:40:53 +00:00
* Fri Mar 22 2013 Rex Dieter <rdieter@fedoraproject.org> 0.9.6-4
- rebuild (cfitsio)
2013-03-20 13:04:05 +00:00
* Wed Mar 20 2013 Rex Dieter <rdieter@fedoraproject.org> 0.9.6-3
- rebuild (cfitsio)
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Dec 07 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.6-1
- New upstream source
- Added udev rules (in wrong directory)
- Fixed FSF previous address bug, new appear
2012-02-28 18:57:47 +00:00
* Tue Jan 24 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9-1
- New upstream source
- All instruments created (solves #653690)
- Library does not call exit()
- Library does not build require boost-devel
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Jul 15 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.8-1
- New upstream source
- Submitted a bug upstream, address of FSF is incorrect in some files
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Nov 26 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6.2-2
- Adding manually telescopes missing (bz #653690)
* Thu Jul 29 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6.2-1
- New upstream source (bz #618776)
- Bz #564842 fixed upstream, patch removed
- With pkgconfig file
* Wed Feb 17 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-11
- Added missing -lm in indi_sbig_stv. Fixes bz #564842
2010-01-08 16:16:46 +00:00
* Fri Jan 08 2010 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-10
- EVR bump, rebuilt with new libnova
* Tue Dec 22 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-9
- Static library moved to its own subpackage
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-18 17:12:54 +00:00
* Wed Feb 18 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-6
- Provides libindi-static
* Tue Feb 17 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-5
- Need to provide the static library libindidriver.a to build indi-apogee
2009-02-14 16:18:10 +00:00
* Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-4
- Fixed patch to find cfitsio
* Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-3
- Patch to detect cfitsio in all architectures
2009-02-09 15:58:11 +00:00
* Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-2
- Commands (rm, make) instead of macros
- Upstream bug about licenses (GPLv2 missing)
- Upstream bug about libindi calling exit
2013-07-17 14:15:10 +00:00
* Mon Jan 26 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-1
2009-02-09 15:58:11 +00:00
- First version