]> git.pld-linux.org Git - packages/bins.git/commitdiff
- new spec
authorJacek Konieczny <jajcus@pld-linux.org>
Thu, 23 May 2002 13:12:32 +0000 (13:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bins.spec -> 1.1

bins.spec [new file with mode: 0644]

diff --git a/bins.spec b/bins.spec
new file mode 100644 (file)
index 0000000..7814831
--- /dev/null
+++ b/bins.spec
@@ -0,0 +1,88 @@
+%include       /usr/lib/rpm/macros.perl
+Summary:       HTML photo album generator
+Summary(pl):   Generator albumów foto
+Name:          bins
+Version:       1.1.7
+Release:       1
+License:       GPL
+Group:         Applications/Graphics
+Source0:       http://jsautret.free.fr/BINS/%{name}-%{version}.tar.bz2
+Patch0:                %{name}-localedir.patch
+URL:           http://bins.sautret.org/
+Buildarch:     noarch
+BuildRequires: rpm-perlprov >= 3.0.3-18
+%requires_eq   perl
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _xbindir %{_prefix}/X11R6/bin/
+%define _xmandir %{_prefix}/X11R6/man/
+%define _localedir %{_datadir}/locale/
+
+%description
+The aim of BINS is to generate static HTML photo albums.
+
+%description -l pl
+BINS s³u¿y do generowania albumów photo w postaci statyczych stron HTML.
+
+%package edit-gui
+Summary:       Editor GUI for BINS
+Summary(pl):   Interfejs u¿ytkownika do edycji albumów bins
+Group:         Applications/Graphics
+Requires:      %{name} = %{version}
+
+%description edit-gui
+GUI for editing BINS albums.
+
+%description -l pl edit-gui
+Interfejs u¿ytkownika do edycji albumów BINS.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} \
+          $RPM_BUILD_ROOT{%{_xbindir},%{_xmandir}/man1} \
+          $RPM_BUILD_ROOT%{_datadir}/%{name}} \
+          $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default \
+          $RPM_BUILD_ROOT%{_localedir}/{fr,de,pl}/LC_MESSAGES 
+
+install bins bins_edit $RPM_BUILD_ROOT%{_bindir}
+install bins-edit-gui $RPM_BUILD_ROOT%{_xbindir}
+install binsrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
+install templates/*.html $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/templates.default
+install bins-edit-gui.glade $RPM_BUILD_ROOT%{_datadir}/%{name}
+install doc/{bins,bins_edit}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install doc/*gui*.1 $RPM_BUILD_ROOT%{_xmandir}/man1
+
+for L in fr de pl ; do
+       install intl/$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}.mo
+       if [ -f intl/gui-$L.mo ] ; then 
+               install intl/gui-$L.mo $RPM_BUILD_ROOT%{_localedir}/$L/LC_MESSAGES/%{name}-edit-gui.mo
+       fi
+done
+
+%find_lang %{name}
+%find_lang %{name}-edit-gui
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc CREDITS ChangeLog README TODO doc/*.html
+%attr(755,root,root) %{_bindir}/* 
+%{_datadir}/%{name}
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/binsrc
+%dir %{_sysconfdir}/%{name}/templates.default
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/templates.default/*
+%{_mandir}/man1/*
+
+%files -f %{name}-edit-gui.lang edit-gui
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_xbindir}/bins-edit-gui
+%{_xmandir}/man1/*
This page took 0.145073 seconds and 4 git commands to generate.