[9427] | 1 | %define mapname fotoxx-maps |
---|
| 2 | %define mapver 1.1 |
---|
| 3 | %define mapsrc %{mapname}-%{mapver} |
---|
| 4 | |
---|
[521] | 5 | Summary: Digital Photo editor |
---|
| 6 | Summary(ja): デジタル写真編集ソフトウェア |
---|
| 7 | |
---|
| 8 | Name: fotoxx |
---|
[9427] | 9 | Version: 15.03.1 |
---|
[521] | 10 | Release: 1%{?_dist_release} |
---|
| 11 | |
---|
| 12 | Group: Applications/Multimedia |
---|
[9427] | 13 | License: GPLv3+ |
---|
| 14 | URL: http://www.kornelix.com/fotoxx.html |
---|
[4663] | 15 | |
---|
[9427] | 16 | Source0: http://www.kornelix.com/uploads/1/3/0/3/13035936/%{name}-%{version}.tar.gz |
---|
| 17 | Source1: http://www.kornelix.com/uploads/1/3/0/3/13035936/%{mapsrc}.tar.gz |
---|
| 18 | Source2: %{name}.desktop |
---|
[521] | 19 | |
---|
[4663] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 21 | BuildRequires: desktop-file-utils |
---|
| 22 | BuildRequires: freeimage-devel |
---|
[9427] | 23 | BuildRequires: gtk3-devel |
---|
[4663] | 24 | BuildRequires: libtiff-devel |
---|
| 25 | BuildRequires: perl-Image-ExifTool |
---|
| 26 | BuildRequires: ufraw |
---|
| 27 | BuildRequires: xdg-utils |
---|
[9427] | 28 | BuildRequires: lcms2-devel |
---|
[4663] | 29 | |
---|
[9427] | 30 | Requires: dcraw |
---|
| 31 | Requires: ufraw |
---|
[4663] | 32 | Requires: perl-Image-ExifTool |
---|
| 33 | Requires: xdg-utils |
---|
[521] | 34 | |
---|
[9427] | 35 | Vendor: Project Vine |
---|
| 36 | Distribution: Vine Linux |
---|
| 37 | |
---|
[521] | 38 | %description |
---|
| 39 | Fotoxx is a free open source Linux program for editing image files |
---|
| 40 | from a digital camera. The goal of fotoxx is to meet most image editing |
---|
| 41 | needs while remaining easy to use. |
---|
| 42 | |
---|
| 43 | %prep |
---|
[9427] | 44 | %setup -q -a 1 |
---|
[521] | 45 | |
---|
| 46 | %build |
---|
[9427] | 47 | # This package's Makefile is bizarre |
---|
| 48 | # Misc. environment tweaks to let Makefile honor %%{optflags} |
---|
| 49 | make %{?_smp_mflags} PREFIX=%{_prefix} \ |
---|
| 50 | CXXFLAGS="%{optflags}" \ |
---|
| 51 | LDFLAGS="%{optflags}" |
---|
[521] | 52 | |
---|
| 53 | %install |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
[9427] | 55 | make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version} |
---|
[4663] | 56 | install -Dm 644 -p icons/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png |
---|
[521] | 57 | |
---|
[9427] | 58 | pushd %{mapsrc} |
---|
| 59 | make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version} |
---|
| 60 | popd |
---|
[521] | 61 | |
---|
[9427] | 62 | desktop-file-install \ |
---|
| 63 | --vendor="" \ |
---|
| 64 | --mode 644 \ |
---|
| 65 | --remove-category="Application" \ |
---|
| 66 | --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \ |
---|
| 67 | %{SOURCE2} |
---|
| 68 | |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/appdata/ |
---|
| 70 | install -m 644 appdata/%{name}.appdata.xml $RPM_BUILD_ROOT/%{_datadir}/appdata/%{name}.appdata.xml |
---|
| 71 | |
---|
| 72 | |
---|
[521] | 73 | %clean |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
| 75 | |
---|
| 76 | |
---|
[9427] | 77 | %posttrans |
---|
| 78 | update-desktop-database -q &> /dev/null ||: |
---|
| 79 | |
---|
| 80 | %postun |
---|
| 81 | if [ $1 -eq 0 ] ; then |
---|
| 82 | update-desktop-database -q &> /dev/null ||: |
---|
| 83 | fi |
---|
| 84 | |
---|
| 85 | |
---|
[521] | 86 | %files |
---|
| 87 | %defattr(-,root,root,-) |
---|
| 88 | %doc doc/* |
---|
| 89 | %dir %{_datadir}/%{name} |
---|
[9427] | 90 | %dir %{_datadir}/%{mapname} |
---|
[521] | 91 | %{_bindir}/%{name} |
---|
[9427] | 92 | %{_datadir}/%{name}/* |
---|
| 93 | %{_datadir}/%{mapname}/* |
---|
| 94 | %{_datadir}/appdata/%{name}.appdata.xml |
---|
[521] | 95 | %{_datadir}/applications/%{name}.desktop |
---|
| 96 | %{_datadir}/pixmaps/%{name}.png |
---|
[4663] | 97 | %{_mandir}/man1/* |
---|
[521] | 98 | |
---|
| 99 | %changelog |
---|
[9427] | 100 | * Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 15.03.1-1 |
---|
| 101 | - new upstream release including fotoxx-maps-1.1 |
---|
| 102 | - updated desktop file (SOURCE2) |
---|
| 103 | - rebuilt with libtiff 4.0.3 |
---|
| 104 | - added Vendor and Distribution tag |
---|
| 105 | |
---|
[4663] | 106 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.11.1-1 |
---|
| 107 | - updated to 10.11.1 |
---|
| 108 | - built with new toolchains |
---|
| 109 | |
---|
[521] | 110 | * Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-1 |
---|
| 111 | - initial build for Vine Linux |
---|
| 112 | |
---|
| 113 | * Wed Feb 25 2009 Dennis Gilmore <dennis@ausil.us> - 6.0-3 |
---|
| 114 | - add patch to dynamically link to libfreeimage |
---|
| 115 | |
---|
| 116 | * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-2 |
---|
| 117 | - Forgot patch |
---|
| 118 | |
---|
| 119 | * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-1 |
---|
| 120 | - New version 6.0 |
---|
| 121 | - Adjust Source0 url (inspired by Kevin Fenzi in fedora-devel-list: https://www.redhat.com/archives/fedora-devel-list/2009-February/msg01622.html ). |
---|
| 122 | |
---|
| 123 | * Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 5.8-2 |
---|
| 124 | - Add patch0 fotoxx-5.8.constchar.patch |
---|
| 125 | - Reformat spec with tabs, remove trailing spaces. |
---|
| 126 | |
---|
| 127 | * Sun Jan 4 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.8-1 |
---|
| 128 | - Rebuild for 5.8 |
---|
| 129 | * Mon Dec 1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.7-1 |
---|
| 130 | - Rebuild for 5.7 |
---|
| 131 | * Sun Nov 16 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.6-1 |
---|
| 132 | - Rebuild for 5.6 |
---|
| 133 | * Tue Nov 4 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.5-1 |
---|
| 134 | - Rebuild for 5.5 |
---|
| 135 | * Thu Oct 9 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.4-1 |
---|
| 136 | - Rebuild for 5.4 |
---|
| 137 | * Thu Sep 18 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.3-1 |
---|
| 138 | - Rebuild for 5.3 |
---|
| 139 | * Sun Aug 31 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.2-1 |
---|
| 140 | - Rebuild for 5.2 |
---|
| 141 | * Sun Aug 24 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.1-1 |
---|
| 142 | - Rebuild for 5.1 |
---|
| 143 | * Fri Aug 8 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0.1-1 |
---|
| 144 | - Rebuild for 5.0.1 |
---|
| 145 | * Sat Aug 2 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0-1 |
---|
| 146 | - Rebuild for 5.0 |
---|
| 147 | * Tue Jul 22 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.9-1 |
---|
| 148 | - Initial build |
---|