| 1 | %define majorver 1 |
|---|
| 2 | |
|---|
| 3 | Name: libfli |
|---|
| 4 | Summary: Library for FLI CCD Camera & Filter Wheels |
|---|
| 5 | Version: 1.7 |
|---|
| 6 | Release: 9%{?_dist_release} |
|---|
| 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 | * Mon May 21 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-9 |
|---|
| 73 | - rebuild with rpm-4.8.1-3 |
|---|
| 74 | |
|---|
| 75 | * Sat Sep 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.7-8 |
|---|
| 76 | - use %%cmake macro |
|---|
| 77 | |
|---|
| 78 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-7 |
|---|
| 79 | - Initial build for Vine Linux |
|---|
| 80 | |
|---|
| 81 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6 |
|---|
| 82 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 83 | |
|---|
| 84 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-5 |
|---|
| 85 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 86 | |
|---|
| 87 | * Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-4 |
|---|
| 88 | - Adding disttag |
|---|
| 89 | |
|---|
| 90 | * Thu Feb 05 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-3 |
|---|
| 91 | - Description lines wrapped around |
|---|
| 92 | - Consistent macros |
|---|
| 93 | - Redownloaded source from upstream |
|---|
| 94 | |
|---|
| 95 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-2 |
|---|
| 96 | - Added patch to use LIB_SUFFIX |
|---|
| 97 | |
|---|
| 98 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-1 |
|---|
| 99 | - First specfile version |
|---|
| 100 | |
|---|