General
Start
APT/YUM/Smart config
List of packages
GPG key
Mirrors
Recent changes
How you can help
Pydar2
Thanks:
Buildsystem hosted at ithomi
SUSE and Mandrake builds made by the openSUSE build service
Static site hosted at ULYSSIS
Primary mirrors hosted at BELNET, HEAnet, 3TI
Varia:
Random picture!
Looking for a java job?
Leuven blogt

qtparted spec file : Dries RPM Repository

Back to the qtparted rpms

Current spec in pydar2:


# $Id: qtparted.spec 4286 2006-04-08 21:39:15Z dries $
# Authority: dries

# Screenshot: http://qtparted.sourceforge.net/images/screenshot-001-a.jpg
# ScreenshotURL: http://qtparted.sourceforge.net/screenshots.en.html

%{?dist: %{expand: %%define %dist 1}}

%{?el4:%define _without_jfs 1}

%{?fc1:%define _without_xfs 1}
%{?el3:%define _without_xfs 1}
%{?rh9:%define _without_xfs 1}

%{?rh7:%define _without_freedesktop 1}
%{?rh7:%define _without_ntfs 1}
%{?rh7:%define _without_xfs 1}

%{?el2:%define _without_freedesktop 1}
%{?el2:%define _without_ntfs 1}
%{?el2:%define _without_xfs 1}

%define desktop_vendor rpmforge

Summary: Graphical frontend for parted
Name: qtparted
Version: 0.4.5
Release: 1.2
License: GPL
Group: Applications/System
URL: http://qtparted.sourceforge.net/

Source: http://dl.sf.net/qtparted/qtparted-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: progsreiserfs-devel, e2fsprogs
%{!?_without_jfs:BuildRequires: jfsutils}
%{!?_without_ntfs:BuildRequires: ntfsprogs}
%{!?_without_xfs:BuildRequires: xfsprogs}
BuildRequires: parted-devel, qt-designer
Requires: parted >= 1.6

%description
A graphical frontend for parted.

%prep
%setup

%{__cat} <data/qtparted.desktop
[Desktop Entry]
Name=QTParted Partition Editor
Comment=Create and manage disk partitions
Exec=qtparted
Icon=qtparted.xpm
Terminal=false
Type=Application
Encoding=UTF-8
Categories=QT;Application;System;
EOF

%{__cat} <qtparted.console
USER=root
PROGRAM=%{_sbindir}/qtparted
SESSION=true
EOF

%{__cat} <qtparted.pam
#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
auth       sufficient   /lib/security/pam_timestamp.so
auth       required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_permit.so
session    optional     /lib/security/pam_timestamp.so
session    optional     /lib/security/pam_xauth.so
account    required     /lib/security/pam_permit.so
EOF

%build
source /etc/profile.d/qt.sh
%configure \
	--with-log-dir="%{_localstatedir}/log" \
	--with-xinerama \
%{?_without_ntfs:--disable-ntfs} \
%{?_without_xfs:--disable-xfs}
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
source /etc/profile.d/qt.sh
%makeinstall

%{__install} -d -m0755 %{buildroot}%{_bindir}
%{__ln_s} -f consolehelper %{buildroot}%{_bindir}/qtparted
%{__install} -Dp -m0644 qtparted.console %{buildroot}%{_sysconfdir}/security/console.apps/qtparted
%{__install} -Dp -m0644 qtparted.pam %{buildroot}%{_sysconfdir}/pam.d/qtparted

%if %{!?_without_freedesktop:1}0
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--delete-original                          \
		--dir %{buildroot}%{_datadir}/applications \
		--add-category X-Red-Hat-Base              \
		%{buildroot}%{_datadir}/applnk/System/qtparted.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING INSTALL README TODO
%doc %{_mandir}/man1/qtparted.1*
%{_sysconfdir}/pam.d/qtparted
%{_sysconfdir}/security/console.apps/qtparted
%{_bindir}/qtparted
%{_sbindir}/qtparted
%{_sbindir}/run_qtparted
%{_datadir}/qtparted/
%{_datadir}/pixmaps/*.xpm
%{?_without_freedesktop:%{_datadir}/applnk/System/qtparted.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-qtparted.desktop}

%changelog
* Sat Apr 08 2006 Dries Verachtert  - 0.4.5-1.2
- Rebuild for Fedora Core 5.

* Sat Aug 13 2005 Dag Wieers  - 0.4.5-1
- Updated to release 0.4.5.

* Sun Jan 09 2005 Dag Wieers  - 0.4.4-1
- Updated to release 0.4.4.

* Sun Dec 7 2003 Dries Verachtert  0.4.1-1
- First packaging for Fedora Core 1