]> git.pld-linux.org Git - packages/partimage.git/blame - partimage.spec
Fix build with zlib >= 1.2.6 (patch from Fedora)
[packages/partimage.git] / partimage.spec
CommitLineData
40d01b54 1Summary: Utility to save partitions in a compressed image file
c9c21b3f
ER
2Summary(pl.UTF-8): Narzędzie do zapisu partycji w skompresowanych plikach
3Summary(pt_BR.UTF-8): Ferramenta para criar e restaurar backup de partições
40d01b54 4Name: partimage
59750c19 5Version: 0.6.9
d6d1d315 6Release: 3
2a6fc7ed 7License: GPL v2
40d01b54 8Group: Applications/System
59750c19 9Source0: http://downloads.sourceforge.net/partimage/%{name}-%{version}.tar.bz2
10# Source0-md5: 1bc046fd915c5debbafc85729464e513
545db503 11Source1: %{name}d.init
383e4731 12Source2: %{name}d.sysconfig
b3c03060
AM
13Source3: %{name}d.pam
14Source4: %{name}d-ssl.cnf
06b9749c 15Patch0: %{name}-fix_debug.patch
16Patch1: %{name}-descr.patch
430086f7 17Patch2: %{name}-gzFile.patch
40d01b54 18URL: http://www.partimage.org/
06a290ed 19BuildRequires: automake
646a6157 20BuildRequires: bzip2-devel
40d01b54 21BuildRequires: gettext-devel
11675dc3 22BuildRequires: libstdc++-devel
646a6157 23BuildRequires: newt-devel
78b2a421
JB
24BuildRequires: openssl-devel
25BuildRequires: pam-devel
3213488f 26BuildRequires: rpmbuild(macros) >= 1.202
b20ebcbf 27BuildRequires: slang-devel >= 2.0.0
646a6157 28BuildRequires: zlib-devel
40d01b54
AM
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Linux/UNIX utility to save partitions in a compressed image file
33Partition Image is a Linux/UNIX partition imaging utility: it saves
545db503 34partitions in the:
35
2a6fc7ed 36 - Ext2FS (the Linux standard)
545db503 37 - ReiserFS (a new, powerful journalling file system)
2a6fc7ed 38 - NTFS (Windows NT File System)
545db503 39 - FAT16/32 (DOS & Windows file systems)
2a6fc7ed 40 - HPFS (OS/2 File System)
41 - JFS (IBM Jounalized File System for AIX)
42 - XFS (SGI Jounalized File System for IRIX)
43 - HFS (Hierarchical File System for MacOS)
44 - UFS (*BSD, Solaris and NextStep file systems)
45
46file system formats to an image file. Only used blocks are copied. The
47image file can be compressed in the GZIP/BZIP2 formats to save disk
48space, and splitted into multiple files to be copied on amovibles
49floppies (ZIP for example), or burned on a CD-R ... This allows to
50save a full Linux/Windows system, with an only operation. When
545db503 51problems (viruses, crash, error, ...), you just have to restore, and
52after several minutes, all your system is restored (boot, files, ...),
53and fully working. This is very useful when installing the same
54software on many machines: just install one of them, create an image,
55and just restore the image on all other machines. Then, after the
2a6fc7ed 56first one, each installation is automatically made, and only require a
57few minutes.
40d01b54 58
2003c3f5
JR
59%description -l pl.UTF-8
60Narzędzie linuksowe do zapisywania partycji w skompresowanych plikach.
59750c19 61Potrafi ono zapisywać partycje:
8c61dbe6 62 - Ext2FS (linuksowy standard),
2003c3f5
JR
63 - ReiserFS (nowy, potężny system plików z journalem),
64 - NTFS (system plików Windows NT),
65 - FAT16/32 (system plików DOS i Windows),
66 - HPFS (system plików OS/2),
67 - XFS (system plików z journalem IBM-a dla AIX),
68 - JFS (system plików z journalem SGI dla IRIX-a),
69 - HFS (hierarchiczny system plików dla MacOS),
59750c19 70 - UFS (system plików *BSD, Solarisa oraz NextStepa).
71
72Kopiowane sątylko używane bloki. Plik wyjściowy może być podzielony na
73wiele mniejszych oraz kompresowany w formacie gzip/bzip2 w celu
74zaoszczędzenia miejsca. Pozwala to na zapis całego systemu
75Linux/Windows w pojedynczej operacji. W razie problemów (wirusy,
76błędy, awaria...) należy po prostu przywrócić system i po kilku
77minutach całość jest znowu sprawna. Jest to bardzo użyteczne przy
78instalowaniu tego samego na wielu maszynach: wystarczy zainstalować na
79jednej z nich, zrobić obraz i przywrócić na pozostałych maszynach. Po
80pierwszej instalacji każda następna wymaga tylko kilku minut.
545db503 81
82%package server
83Summary: Partimage server
c9c21b3f 84Summary(pl.UTF-8): Serwer Partimage
545db503 85Group: Applications/System
599f2514
ER
86Requires(post,preun): /sbin/chkconfig
87Requires(postun): /usr/sbin/groupdel
88Requires(postun): /usr/sbin/userdel
ffa238aa 89Requires(pre): /bin/id
6375c8ce 90Requires(pre): /usr/bin/getgid
ffa238aa
JB
91Requires(pre): /usr/sbin/groupadd
92Requires(pre): /usr/sbin/useradd
599f2514 93Requires: %{name} = %{version}-%{release}
b3c03060 94Requires: openssl-tools
6375c8ce 95Provides: group(partimag)
96Provides: user(partimag)
545db503 97
98%description server
d6ad0ef6 99Server for Partimage.
545db503 100
2003c3f5 101%description server -l pl.UTF-8
8eb649f2 102Server dla Partimage.
40d01b54
AM
103
104%prep
db0109ab 105%setup -q
aebf3f1e 106%patch0 -p1
39d9b4fc 107%patch1 -p1
430086f7 108%patch2 -p1
40d01b54
AM
109
110%build
06a290ed 111cp -f /usr/share/automake/config.sub .
27347b52 112rm -f po/stamp-po
40d01b54 113%configure \
d6d1d315 114 --disable-silent-rules \
b3c03060
AM
115 --enable-pam \
116 --enable-ssl
40d01b54
AM
117%{__make}
118
119%install
120rm -rf $RPM_BUILD_ROOT
b3c03060 121install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{partimaged,pam.d},/etc/rc.d/init.d,/etc/sysconfig,/var/spool/partimage}
40d01b54 122
2a6fc7ed 123%{__make} -C src install \
545db503 124 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
2a6fc7ed 125 DESTDIR=$RPM_BUILD_ROOT
40d01b54 126
2a6fc7ed 127%{__make} -C po install \
128 DESTDIR=$RPM_BUILD_ROOT
40d01b54 129
ffa238aa 130cat > $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimagedusers << EOF
545db503 131#note, '#' intruduces comments
132#add only users allowed to connect to partimaged
133# (only one login per line)
134
59750c19 135#joe # user 'joe' is allowed to connect to partimaged
545db503 136EOF
545db503 137
2a6fc7ed 138install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/partimaged
383e4731 139install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/partimaged
b3c03060 140install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/partimaged
59750c19 141install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.cnf
b3c03060 142
59750c19 143touch $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.{csr,cert,key}
40d01b54
AM
144
145%find_lang %{name}
146
99f022bc
JB
147%clean
148rm -rf $RPM_BUILD_ROOT
149
545db503 150%pre server
3213488f
ER
151%groupadd -P %{name}-server -g 98 partimag
152%useradd -P %{name}-server -u 98 -d %{_sysconfdir}/partimaged -s /bin/false -c "Partimage server" -g partimag partimag
545db503 153
154%post server
155/sbin/chkconfig --add partimaged
b3c03060
AM
156if [ ! -s /etc/partimaged/partimaged.key -o ! -s /etc/partimaged/partimaged.cert ]; then
157 echo "Run \"/etc/rc.d/init.d/partimaged init\" to create self-signed SSL certificate." >&2
158fi
159
dd8f7eb7
PG
160if [ -f /var/lock/subsys/partimaged ]; then
161 /etc/rc.d/init.d/partimaged restart >&2
545db503 162else
d799e846 163 echo "Run \"/etc/rc.d/init.d/partimaged start\" to start partimage server." >&2
545db503 164fi
165
59750c19 166echo
b3c03060 167
545db503 168%preun server
169if [ "$1" = "0" ]; then
dd8f7eb7
PG
170 if [ -f /var/lock/subsys/partimaged ]; then
171 /etc/rc.d/init.d/partimaged stop >&2
545db503 172 fi
173 /sbin/chkconfig --del partimaged
174fi
175
176%postun server
ffa238aa 177if [ "$1" = "0" ]; then
6375c8ce 178 %userremove partimag
179 %groupremove partimag
545db503 180fi
181
40d01b54
AM
182%files -f %{name}.lang
183%defattr(644,root,root,755)
59750c19 184%doc AUTHORS ChangeLog README* THANKS BUGS
ffa238aa 185%attr(755,root,root) %{_sbindir}/partimage
545db503 186
187%files server
188%defattr(644,root,root,755)
e3846119 189%doc README.partimaged
ffa238aa 190%attr(755,root,root) %{_sbindir}/partimaged
545db503 191%attr(754,root,root) /etc/rc.d/init.d/partimaged
b3c03060 192%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/partimaged
48fbb2b8 193%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/partimaged
545db503 194%dir %{_sysconfdir}/partimaged
59750c19 195%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cnf
196%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.csr
197%attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.key
198%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cert
aac688ac 199%attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimagedusers
0ece7af8 200%attr(700,partimag,root) %dir /var/spool/partimage
This page took 0.138383 seconds and 4 git commands to generate.