| 1 | %define majorver 1 |
|---|
| 2 | |
|---|
| 3 | Name: libfli |
|---|
| 4 | Summary: Library for FLI CCD Camera & Filter Wheels |
|---|
| 5 | Version: 1.7 |
|---|
| 6 | Release: 10%{?_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 | Summary(ja): %{name} を用いるアプリケーションの開発に必要なファイル |
|---|
| 27 | Group: Development/Libraries |
|---|
| 28 | Requires: %{name} = %{version}-%{release} |
|---|
| 29 | |
|---|
| 30 | %description devel |
|---|
| 31 | These are the header files needed to develop a %{name} application |
|---|
| 32 | |
|---|
| 33 | %prep |
|---|
| 34 | %setup -q -n %{name}%{majorver}-%{version} |
|---|
| 35 | %patch0 -p1 |
|---|
| 36 | |
|---|
| 37 | %build |
|---|
| 38 | mkdir -p %{_target_platform} |
|---|
| 39 | pushd %{_target_platform} |
|---|
| 40 | CFLAGS="${CFLAGS:-%optflags}" \ |
|---|
| 41 | CXXFLAGS="${CXXFLAGS:-%optflags}" \ |
|---|
| 42 | FFLAGS="${FFLAGS:-%optflags}" \ |
|---|
| 43 | %cmake \ |
|---|
| 44 | -DCMAKE_BUILD_TYPE=release \ |
|---|
| 45 | -DDATA_INSTALL_DIR:PATH=%{_datadir} \ |
|---|
| 46 | .. |
|---|
| 47 | popd |
|---|
| 48 | |
|---|
| 49 | make VERBOSE=1 %{?_smp_mflags} -C %{_target_platform} |
|---|
| 50 | |
|---|
| 51 | %install |
|---|
| 52 | rm -fr %{buildroot} |
|---|
| 53 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
|---|
| 54 | |
|---|
| 55 | %clean |
|---|
| 56 | rm -fr %{buildroot} |
|---|
| 57 | |
|---|
| 58 | %post -p /sbin/ldconfig |
|---|
| 59 | |
|---|
| 60 | %postun -p /sbin/ldconfig |
|---|
| 61 | |
|---|
| 62 | %files |
|---|
| 63 | %defattr(-,root,root,-) |
|---|
| 64 | %doc LICENSE.BSD |
|---|
| 65 | %{_libdir}/*.so.* |
|---|
| 66 | |
|---|
| 67 | %files devel |
|---|
| 68 | %defattr(-,root,root,-) |
|---|
| 69 | %{_includedir}/* |
|---|
| 70 | %{_libdir}/*.so |
|---|
| 71 | |
|---|
| 72 | %changelog |
|---|
| 73 | * Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.7-10 |
|---|
| 74 | - rebuilt on current VineSeed |
|---|
| 75 | |
|---|
| 76 | * Mon May 21 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-9 |
|---|
| 77 | - rebuild with rpm-4.8.1-3 |
|---|
| 78 | |
|---|
| 79 | * Sat Sep 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.7-8 |
|---|
| 80 | - use %%cmake macro |
|---|
| 81 | |
|---|
| 82 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-7 |
|---|
| 83 | - Initial build for Vine Linux |
|---|
| 84 | |
|---|
| 85 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6 |
|---|
| 86 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 87 | |
|---|
| 88 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-5 |
|---|
| 89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 90 | |
|---|
| 91 | * Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-4 |
|---|
| 92 | - Adding disttag |
|---|
| 93 | |
|---|
| 94 | * Thu Feb 05 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-3 |
|---|
| 95 | - Description lines wrapped around |
|---|
| 96 | - Consistent macros |
|---|
| 97 | - Redownloaded source from upstream |
|---|
| 98 | |
|---|
| 99 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-2 |
|---|
| 100 | - Added patch to use LIB_SUFFIX |
|---|
| 101 | |
|---|
| 102 | * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-1 |
|---|
| 103 | - First specfile version |
|---|
| 104 | |
|---|