diff --git a/README.md b/README.md index d661b16..b529afd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # indi +INDI is a standard for astronomical instrumentation control. INDI Library is an Open Source POSIX implementation of the Instrument-Neutral-Device-Interface protocol. + diff --git a/indi.spec b/indi.spec new file mode 100644 index 0000000..a4c2045 --- /dev/null +++ b/indi.spec @@ -0,0 +1,110 @@ +Name: indi +Version: 2.0.7 +Release: 1mamba +Summary: INDI astronomical instrumentation control Core Library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.indilib.org/ +Source: https://github.com/indilib/indi.git/v%{version}/indi-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcfitsio-devel +BuildRequires: libcurl-devel +BuildRequires: libev-devel +BuildRequires: libfftw-devel +BuildRequires: libgcc +BuildRequires: libgsl-devel +BuildRequires: libjpeg-devel +BuildRequires: libnova-devel +BuildRequires: libogg-devel +BuildRequires: librtlsdr-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtheora-devel +BuildRequires: libusb-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +INDI is a standard for astronomical instrumentation control. INDI Library is an Open Source POSIX implementation of the Instrument-Neutral-Device-Interface protocol. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake \ + -DUDEVRULES_INSTALL_DIR=%{_udevrulesdir} + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/indi_* +%{_bindir}/indiserver +%{_bindir}/shelyak_usis +%{_udevrulesdir}/80-dbk21-camera.rules +%{_udevrulesdir}/99-indi_auxiliary.rules +%{_datadir}/indi/drivers.xml +%{_datadir}/indi/indi_tcfs_sk.xml +%{_datadir}/indi/shelyak_boards.json +%doc AUTHORS LICENSE + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libindiAlignmentDriver.so.* +%{_libdir}/libindiclient.so.* +%{_libdir}/libindidriver.so.* +%{_libdir}/libindilx200.so.* +%dir %{_libdir}/indi +%dir %{_libdir}/indi/MathPlugins +%{_libdir}/indi/MathPlugins/libindi_Nearest_MathPlugin.so +%{_libdir}/indi/MathPlugins/libindi_SVD_MathPlugin.so + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/libindi +%{_includedir}/libindi/* +%{_libdir}/libindiAlignmentClient.a +%{_libdir}/libindiAlignmentDriver.so +%{_libdir}/libindiclient.a +%{_libdir}/libindiclient.so +%{_libdir}/libindidriver.a +%{_libdir}/libindidriver.so +%{_libdir}/libindilx200.so +%{_libdir}/pkgconfig/libindi.pc +%doc ChangeLog NEWS README README.Cygwin README.md + +%changelog +* Thu Apr 11 2024 Silvan Calarco 2.0.7-1mamba +- package created using the webbuild interface