[521] | 1 | %define majorver 1 |
---|
| 2 | |
---|
| 3 | Name: libfli |
---|
| 4 | Version: 1.7 |
---|
| 5 | Release: 8%{?_dist_release} |
---|
| 6 | Summary: Library for FLI CCD Camera & Filter Wheels |
---|
| 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | # Code and LICENSE.LIB have different versions of the BSD license |
---|
| 10 | # https://sourceforge.net/tracker2/?func=detail&aid=2568511&group_id=90275&atid=593019 |
---|
| 11 | License: BSD |
---|
| 12 | URL: http://indi.sourceforge.net/index.php |
---|
| 13 | |
---|
| 14 | Source0: http://downloads.sourceforge.net/indi/%{name}%{majorver}_%{version}.tar.gz |
---|
| 15 | Patch0: libfli-suffix.patch |
---|
| 16 | |
---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: cmake |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | Finger Lakes Instrument library is used by applications to control FLI |
---|
| 22 | line of CCDs and Filter wheels |
---|
| 23 | |
---|
| 24 | %package devel |
---|
| 25 | Summary: Libraries, includes, etc. used to develop an application with %{name} |
---|
| 26 | Group: Development/Libraries |
---|
| 27 | Requires: %{name} = %{version}-%{release} |
---|
| 28 | |
---|
| 29 | %description devel |
---|
| 30 | These are the header files needed to develop a %{name} application |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n %{name}%{majorver}-%{version} |
---|
| 34 | %patch0 -p1 |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | mkdir -p %{_target_platform} |
---|
| 38 | pushd %{_target_platform} |
---|
| 39 | CFLAGS="${CFLAGS:-%optflags}" \ |
---|
| 40 | CXXFLAGS="${CXXFLAGS:-%optflags}" \ |
---|
| 41 | FFLAGS="${FFLAGS:-%optflags}" \ |
---|
| 42 | %cmake \ |
---|
| 43 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 44 | -DDATA_INSTALL_DIR:PATH=%{_datadir} \ |
---|
| 45 | .. |
---|
| 46 | popd |
---|
| 47 | |
---|
| 48 | make VERBOSE=1 %{?_smp_mflags} -C %{_target_platform} |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -fr %{buildroot} |
---|
| 52 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 53 | |
---|
| 54 | %clean |
---|
| 55 | rm -fr %{buildroot} |
---|
| 56 | |
---|
| 57 | %post -p /sbin/ldconfig |
---|
| 58 | |
---|
| 59 | %postun -p /sbin/ldconfig |
---|
| 60 | |
---|
| 61 | %files |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %doc LICENSE.BSD |
---|
| 64 | %{_libdir}/*.so.* |
---|
| 65 | |
---|
| 66 | %files devel |
---|
| 67 | %defattr(-,root,root,-) |
---|
| 68 | %{_includedir}/* |
---|
| 69 | %{_libdir}/*.so |
---|
| 70 | |
---|
| 71 | %changelog |
---|
| 72 | * Sat Sep 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.7-8 |
---|
| 73 | - use %%cmake macro |
---|
| 74 | |
---|
| 75 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-7 |
---|
| 76 | - Initial build for Vine Linux |
---|
| 77 | |
---|
| 78 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6 |
---|
| 79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 80 | |
---|
| 81 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-5 |
---|
| 82 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 83 | |
---|
| 84 | * Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-4 |
---|
| 85 | - Adding disttag |
---|
| 86 | |
---|
| 87 | * Thu Feb 05 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-3 |
---|
| 88 | - Description lines wrapped around |
---|
| 89 | - Consistent macros |
---|
| 90 | - Redownloaded source from upstream |
---|
| 91 | |
---|
| 92 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-2 |
---|
| 93 | - Added patch to use LIB_SUFFIX |
---|
| 94 | |
---|
| 95 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-1 |
---|
| 96 | - First specfile version |
---|
| 97 | |
---|