summaryrefslogtreecommitdiff
path: root/reglookup.spec
blob: d86c6fad07f5877ebc8a501d2a81551f447ddc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Summary:	small utility for querying NT/2K/XP/2K3/Vista registries
Summary(pl.UTF-8):	proste narzędzie do odpytywania rejestrów NT/2K/XP/2K3/Vista
Name:		reglookup
Version:	1.0.1
Release:	2
License:	GPL v3
Group:		Applications
Source0:	http://projects.sentinelchicken.org/data/downloads/%{name}-src-%{version}.tar.gz
# Source0-md5:	c451c2dba904db8ae5b0531ca303e322
Patch0:		%{name}-paths.patch
Patch1:		%{name}-soname.patch
URL:		http://projects.sentinelchicken.org/reglookup/
BuildRequires:	rpmbuild(macros) >= 1.385
BuildRequires:	scons
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
RegLookup is an small command line utility for reading and querying
Windows NT-based registries. RegLookup is released under the GNU GPL,
and is implemented in ANSI C. Original source was borrowed from the
program editreg, written by Richard Sharpe. It has since been
rewritten to use the regfio library, written by Gerald Carter.

Currently the program allows one to read an entire registry and output
it in a (mostly) standardized, quoted format. It also provides
features for filtering of results based on registry path and data
type.

%description -l pl.UTF-8
RegLookup to proste narzędzie do odczytywania i odpytywania rejestrów
systemów Windows serii NT. RegLookup jest udostępniony na zasadach
licencji GNU GPL i zaimplementowany w ANSI C. Źródła oparte są na
programie editreg, napisanym przez Richarda Sharpe. Od tamtej pory
program został przepisany z wykorzystaniem biblioteki regfio,
napisanej przez Geralda Cartera.

Obecnie program pozwala na odczyt rejestru i wypisania go w
ustandaryzowanym formacie. Możliwe jest także filtrowanie wyników na
podstawie ścieżek rejestru czy typów danych.

%package libs
Summary:	reglookup shared library
Summary(pl.UTF-8):	współdzielona biblioteka reglookup
Group:		Libraries

%description libs
reglookup shared library.

%description libs -l pl.UTF-8
współdzielona biblioteka reglookup.

%package devel
Summary:	Header files for reglookup library
Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki reglookup
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for reglookup library.

%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki reglookup.

%package static
Summary:	Static reglookup library
Summary(pl.UTF-8):	Statyczna biblioteka reglookup
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static reglookup library.

%description static -l pl.UTF-8
Statyczna biblioteka reglookup.

%package -n python-pyregfi
Summary:	Python bindings for regfi library
Summary(pl.UTF-8):	Dowiązania pythona do blblioteki regfi
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n python-pyregfi
Python bindings for regfi library.

%description -n python-pyregfi -l pl.UTF-8
Dowiązania pythona do biblioteki regfi.

%prep
%setup -q -n %{name}-src-%{version}
%patch0 -p1
%patch1 -p1

%build
%scons

%install
rm -rf $RPM_BUILD_ROOT

DESTDIR=$RPM_BUILD_ROOT \
PREFIX="%{_prefix}" \
BINDIR="%{_bindir}" \
LIBDIR="%{_libdir}" \
MANDIR="%{_mandir}" \
INCLUDEDIR="%{_includedir}" \
%scons install

%{__python} pyregfi-distutils.py install \
	--optimize=2 \
	--root=$RPM_BUILD_ROOT

# fix soname
mv $RPM_BUILD_ROOT%{_libdir}/libregfi.so{,.%{version}}
ln -sf libregfi.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libregfi.so.1
ln -sf libregfi.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libregfi.so

%py_postclean

%clean
rm -rf $RPM_BUILD_ROOT

%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/reglookup*.1*

%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/*.so.*.*.*
%attr(755,root,root) %{_libdir}/*.so.1

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/*.so
%{_includedir}/regfi

%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a

%files -n python-pyregfi
%defattr(644,root,root,755)
%dir %{py_sitescriptdir}/pyregfi
%{py_sitescriptdir}/pyregfi/*.py[co]
%{py_sitescriptdir}/*.egg-info