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