Blob Blame History Raw
Name: eiciel
Version: 0.9.8.1
Release: 5%{?dist}
Summary: Graphical editor for ACLs and xattr
Group: Applications/System
License: GPLv2+
URL: http://rofi.roger-ferrer.org/eiciel
Source0: http://rofi.roger-ferrer.org/eiciel/download/eiciel-%{version}.tar.bz2

# Fedora <= 15 only
# change system user/groups upper bound from 500 to 1000.  Works for fedora;
# anyone wishing to submit a "real" patch that involves querying libuser
# directly is MORE than welcome to do so :)
Patch0: eiciel-0.9.8-fedora_sys_usergroups.patch
# move LDFLAGS before libs, add -Wl,--as-needed
# this only touches Makefile.in for now
Patch1: eiciel-0.9.8.1-LDFLAGS.patch
#
Patch2: eiciel-0.9.8.1-desktop-file.patch
# bz 811460
Patch3: eiciel-0.9.8.1-no-such-file.patch

BuildRequires: libgnomeui-devel
BuildRequires: libacl-devel
BuildRequires: nautilus-devel
BuildRequires: gtkmm30-devel
BuildRequires: desktop-file-utils

%define ext_dir %(eval "pkg-config --variable=extensiondir libnautilus-extension")

# don't "provide" a private shlib
%{?filter_setup:
%filter_provides_in %{ext_dir}/.*\.so$
%filter_setup
}

%description
Graphical editor for access control lists (ACLs) and extended attributes
(xattr), either as an extension within Nautilus, or as a standalone
utility.


%prep
%setup -q
[ $(cksum ChangeLog|cut -d ' ' -f 1,2) != "874165526 318" ] && exit -1
%if 0%{?fedora} < 16
%patch0 -b .uid_gid_range
%endif
%patch1 -p1 -b .LDFLAGS
%patch2 -p1 -b .desktop-file
%patch3 -p1 -b .no-such-file-crash

iconv -f ISO-8859-1 -t UTF-8 AUTHORS > foo
mv foo AUTHORS


%build
%configure --with-nautilus-extensions-dir=%{ext_dir} \
    --disable-static
make %{?_smp_mflags}


%install
make install DESTDIR=%{buildroot}
%find_lang %{name}

rm -f %{buildroot}%{ext_dir}/*.la

desktop-file-install --vendor fedora                        \
        --dir %{buildroot}%{_datadir}/applications          \
        --delete-original                                   \
        %{buildroot}%{_datadir}/applications/%{name}.desktop


%files -f %{name}.lang
%doc AUTHORS COPYING README
# ancient gettextize file
#%doc ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/gnome/help/%{name}/
%{_datadir}/applications/*%{name}.desktop
%{_mandir}/man1/%{name}*
%{ext_dir}/lib%{name}*.so


%changelog
* Wed Apr 11 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.8.1-5
- Patch open_file() file not found crash (#811460).

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Nov  7 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.8.1-3
- General cleanup of spec file and remove obsolete items.
- Insert %%prep guard to check whether ChangeLog file gets replaced.
- Fix desktop file issues.

* Sat Nov  5 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.8.1-2
- Move LDFLAGS before libs and link with --as-needed.

* Sun Jul 31 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.8.1-1
- Update to 0.9.8.1 to fix GTK2 vs. GTK3 crash (#726950)
  and Nautilus freeze (#703924).
- BR gtkmm30-devel instead of gtkmm24-devel.
- Apply user/group bounds patch only for Fedora <= 15, because Fedora 16
  will start at 1000.

* Wed Apr 27 2011 Chris Weyl <cweyl@alumni.drew.edu> 0.9.8-1
- update to 0.9.8
- filter out our private plugin shlib from rpm metadata provides

* Fri Feb 11 2011 Matthias Clasen <mclasen@redhat.com> - 0.9.6.1-5
- Rebuild against newer gtk

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat May 24 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.9.6.1-1
- update to 0.9.6.1
- patch system user/group bounds; primitive but works :)  Should resolve
  RH#445667.
- oh, and the nautlius extensions dir seems to have changed.  Let's use what
  libnautilus-extensions.pc says is the right directory, instead of
  hardcoding it.

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2
- Autorebuild for GCC 4.3

* Thu Oct 25 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.9.5-1
- update to 0.9.5

* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.9.4-2
- bump

* Sun Nov 12 2006 Chris Weyl <cweyl@alumni.drew.edu>
- update to 0.9.4
- src/eiciel.desktop and doc/C/eiciel.xml no longer in source tarball 

* Sun Nov 12 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.9.3-1
- update to 0.9.3
- nuke src/eiciel.desktop during prep, drop the patch and just let configure
  do its thing

* Sat Nov 11 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.9.2-8
- bump

* Sat Nov 11 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.9.2-7
- rm doc/C/eiciel.xml during prep; otherwise it isn't rebuilt properly

* Wed Nov 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.9.2-6
- minor tweaks, resubmitted

* Sun Jul 09 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9.2-5
- Drop excludes for .debug files
- Tidy up summary and description
- Make includes more precise
- Use .desktop file now accepted upstream (but with patch)
- Use existing .png file as icon instead of copy

* Mon Jul 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9.2-4
- Change .debug excludes to work on x86_64 too

* Mon Jul 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9.2-3
- Exclude *.debug files
- Remove macros from changelog section to shut up rpmlint
- Reduced file permissions on .spec and .desktop files

* Mon Jul 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9.2-2
- Claim files under libdir more precisely
- Add nautilus to buildreqs

* Mon Jul 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9.2-1
- Update source to 0.9.2
- Drop gcc4.1 patch accepted upstream

* Sat Feb 04 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-8
- Use __mkdir and __install macros

* Fri Feb 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-7
- Make version key in .desktop refer to fd.o spec ver, not eicel ver
- Actually install the .destop file
- Provide icon for .desktop file in /usr/share/pixmaps
- Replace all RPM_BUILD_ROOT macros with buildroot

* Fri Feb 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-6
- All docs are in doc
- All Requires were detected automatically
- Omit .la as well as .a
- Reset file permissions on source files
- Use find_lang for locale files
- Added .desktop file
- Change instances of eiciel to name macro

* Fri Feb 03 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-5
- Exclude .a library which is unlikely to be used
- Use more fine-grained file specs, particularly for man/doc files

* Thu Feb 02 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-4
- Attempt to fix rpmlint ownership warnings about man1 files/dirs

* Thu Feb 02 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-3
- Changed BuildRequires/Requires

* Thu Feb 02 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-2
- Added patch for gcc4.1

* Thu Feb 02 2006 Andy Burns <fedora@adslpipe.co.uk> 0.9-1
- Initial RPM build