[packages/floppy] - initial
qboosh
qboosh at pld-linux.org
Tue Mar 28 21:33:36 CEST 2017
commit 599e201c6dc993f1ab18ee435c3b291f0f1d20d2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Mar 28 21:33:23 2017 +0200
- initial
floppy.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
floppygtk.desktop | 9 ++++++
2 files changed, 96 insertions(+)
---
diff --git a/floppy.spec b/floppy.spec
new file mode 100644
index 0000000..fd8bc90
--- /dev/null
+++ b/floppy.spec
@@ -0,0 +1,87 @@
+#
+# Conditional build:
+%bcond_without gtk # GTK+ 2 GUI
+#
+Summary: Floppy formatting utility
+Summary(pl.UTF-8): Narzędzie do formatowania dyskietek
+Name: floppy
+Version: 0.18
+Release: 1
+License: GPL v3
+Group: Applications/System
+Source0: http://downloads.sourceforge.net/floppyutil/%{name}-%{version}.tar.bz2
+# Source0-md5: a02aac97c74259ca1b24972c89147ca4
+Source1: floppygtk.desktop
+URL: http://floppyutil.sourceforge.net/
+BuildRequires: gtk+2-devel >= 2.0
+BuildRequires: pkgconfig
+BuildRequires: popt-devel
+Requires: uname(release) >= 2.4.10
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The floppy utility does low-level formatting of floppy disks. This
+utility supports formatting of disks in LS-120 drives.
+
+%description -l pl.UTF-8
+Narzędzie floppy wykonuje niskopoziomowe formatowanie dyskietek. To
+narzędzie obsługuje także formatowanie dyskietek w napędach LS-120.
+
+%package gtk
+Summary: GTK+ floppy formatting utility
+Summary(pl.UTF-8): Narzędzie GTK+ do formatowania dyskietek
+Group: X11/Applications
+Requires: %{name} = %{version}-%{release}
+
+%description gtk
+This package contains a GTK+ interface to the floppy formatting
+utility.
+
+%description gtk -l pl.UTF-8
+Ten pakiet zawiera graficzny interfejs GTK+ do narzędzia floppy
+służącego do formatowania dyskietek.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ %{!?with_gtk:--disable-gtk2}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+: >$RPM_BUILD_ROOT%{_sysconfdir}/floppy
+
+%if %{with gtk}
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ ! -f %{_sysconfdir}/floppy ]; then
+ umask 022
+ %{_bindir}/floppy --createrc >%{_sysconfdir}/floppy 2>/dev/null || rm -f %{_sysconfdir}/floppy
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/floppy
+%ghost %{_sysconfdir}/floppy
+%{_mandir}/man8/floppy.8*
+
+%if %{with gtk}
+%files gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/floppygtk
+%{_desktopdir}/floppygtk.desktop
+%endif
diff --git a/floppygtk.desktop b/floppygtk.desktop
new file mode 100644
index 0000000..45d26f7
--- /dev/null
+++ b/floppygtk.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Format floppy
+Name[pl]=Formatowanie dyskietek
+Comment=Format a floppy disk
+Comment[pl]=Formatowanie dyskietek
+Exec=/usr/bin/floppygtk
+Terminal=false
+Type=Application
+Categories=Application;System;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/floppy.git/commitdiff/599e201c6dc993f1ab18ee435c3b291f0f1d20d2
More information about the pld-cvs-commit
mailing list