[4722] | 1 | %define majorver 0 |
---|
| 2 | |
---|
[521] | 3 | Name: libindi |
---|
[1393] | 4 | Summary: Instrument Neutral Distributed Interface |
---|
[4722] | 5 | Version: 0.8 |
---|
[9382] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | |
---|
[846] | 8 | Group: System Environment/Libraries |
---|
[521] | 9 | License: LGPLv2+ and GPLv2+ |
---|
| 10 | # The code is LGPLv2+ except: |
---|
| 11 | # some files for v4l2 conversion under libs/webcam are GPLv2+ |
---|
| 12 | # drivers/video/stvdriver (indi_stv driver) appears to contain GPL code |
---|
| 13 | # upstream bug https://sourceforge.net/tracker2/?func=detail&aid=2572902&group_id=90275&atid=593019 |
---|
| 14 | URL: http://indi.sourceforge.net/ |
---|
| 15 | |
---|
[1597] | 16 | Source0: http://downloads.sourceforge.net/indi/%{name}_%{version}.tar.gz |
---|
[521] | 17 | Patch0: libindi-suffix.patch |
---|
[1597] | 18 | |
---|
[521] | 19 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | BuildRequires: cmake |
---|
[1597] | 21 | BuildRequires: cfitsio-devel >= 3.03 |
---|
[4722] | 22 | BuildRequires: libboost-devel |
---|
[1597] | 23 | BuildRequires: libnova-devel >= 0.12.1 |
---|
[4722] | 24 | BuildRequires: libusb-devel |
---|
[521] | 25 | BuildRequires: zlib-devel |
---|
| 26 | |
---|
[1393] | 27 | Conflicts: kdeedu3 |
---|
| 28 | |
---|
[521] | 29 | %description |
---|
| 30 | INDI is a distributed control protocol designed to operate |
---|
| 31 | astronomical instrumentation. INDI is small, flexible, easy to parse, |
---|
| 32 | and scalable. It supports common DCS functions such as remote control, |
---|
| 33 | data acquisition, monitoring, and a lot more. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %package devel |
---|
| 37 | Summary: Libraries, includes, etc. used to develop an application with %{name} |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Provides: libindi-static = %{version}-%{release} |
---|
| 41 | |
---|
| 42 | %description devel |
---|
| 43 | These are the header files needed to develop a %{name} application |
---|
| 44 | |
---|
| 45 | %prep |
---|
[1597] | 46 | %setup -q -n %{name}-%{version} |
---|
[521] | 47 | %patch0 -p1 |
---|
[1597] | 48 | #patch1 -p1 |
---|
[521] | 49 | |
---|
| 50 | %build |
---|
| 51 | mkdir -p %{_target_platform} |
---|
| 52 | pushd %{_target_platform} |
---|
| 53 | CFLAGS="${CFLAGS:-%optflags}" \ |
---|
| 54 | CXXFLAGS="${CXXFLAGS:-%optflags}" \ |
---|
| 55 | FFLAGS="${FFLAGS:-%optflags}" \ |
---|
| 56 | %cmake \ |
---|
| 57 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 58 | -DDATA_INSTALL_DIR:PATH=%{_datadir} \ |
---|
| 59 | .. |
---|
| 60 | popd |
---|
| 61 | |
---|
| 62 | make VERBOSE=1 %{?_smp_mflags} -C %{_target_platform} |
---|
| 63 | |
---|
| 64 | %install |
---|
| 65 | rm -fr %{buildroot} |
---|
| 66 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | rm -fr %{buildroot} |
---|
| 70 | |
---|
| 71 | %post -p /sbin/ldconfig |
---|
| 72 | |
---|
| 73 | %postun -p /sbin/ldconfig |
---|
| 74 | |
---|
| 75 | %files |
---|
| 76 | %defattr(-,root,root,-) |
---|
[4722] | 77 | %doc AUTHORS ChangeLog COPYING.LIB LICENSE README README.drivers |
---|
[521] | 78 | %{_bindir}/* |
---|
| 79 | %{_libdir}/*.so.* |
---|
| 80 | %{_datadir}/indi |
---|
| 81 | |
---|
| 82 | %files devel |
---|
| 83 | %defattr(-,root,root,-) |
---|
| 84 | %doc README COPYING.LIB LICENSE |
---|
| 85 | %{_includedir}/* |
---|
| 86 | %{_libdir}/*.so |
---|
| 87 | %{_libdir}/*.a |
---|
[1597] | 88 | %{_libdir}/pkgconfig/*.pc |
---|
[521] | 89 | |
---|
| 90 | %changelog |
---|
[9382] | 91 | * Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.8.0-2 |
---|
| 92 | - rebuilt with cfitsio 3.370 and libnova 0.15.0 |
---|
| 93 | |
---|
[4722] | 94 | * Sun Aug 28 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.0-1 |
---|
| 95 | - new upstream release |
---|
| 96 | - updated Patch0 |
---|
| 97 | - built with libnova-0.14 |
---|
| 98 | |
---|
[1885] | 99 | * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.3-1 |
---|
| 100 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 101 | |
---|
[1597] | 102 | * Tue Aug 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.2-1 |
---|
| 103 | - new upstream release |
---|
| 104 | - updated Patch0 |
---|
| 105 | |
---|
[1393] | 106 | * Wed Jul 7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6-12 |
---|
| 107 | - added Conflicts: kdeedu3 |
---|
| 108 | |
---|
[846] | 109 | * Sat Apr 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6-11 |
---|
| 110 | - rebuilt with new toolchain and libnova-0.13 |
---|
| 111 | |
---|
[521] | 112 | * Sat Sep 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 0.6-10 |
---|
| 113 | - use %%cmake macro |
---|
| 114 | |
---|
| 115 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6-9 |
---|
| 116 | - Inisital build for Vine Linux |
---|
| 117 | |
---|
| 118 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-8 |
---|
| 119 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 120 | |
---|
| 121 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-7 |
---|
| 122 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 123 | |
---|
| 124 | * Wed Feb 18 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-6 |
---|
| 125 | - Provides libindi-static |
---|
| 126 | |
---|
| 127 | * Tue Feb 17 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-5 |
---|
| 128 | - Need to provide the static library libindidriver.a to build indi-apogee |
---|
| 129 | |
---|
| 130 | * Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-4 |
---|
| 131 | - Fixed patch to find cfitsio |
---|
| 132 | |
---|
| 133 | * Sat Feb 14 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-3 |
---|
| 134 | - Patch to detect cfitsio in all architectures |
---|
| 135 | |
---|
| 136 | * Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-2 |
---|
| 137 | - Commands (rm, make) instead of macros |
---|
| 138 | - Upstream bug about licenses (GPLv2 missing) |
---|
| 139 | - Upstream bug about libindi calling exit |
---|
| 140 | |
---|
| 141 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6-1 |
---|
| 142 | - First version |
---|