2015-12-02 22:58:48 +01:00
|
|
|
#
|
|
|
|
# spec file for package libfsntfs
|
|
|
|
#
|
2017-02-16 23:40:35 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-12-02 22:58:48 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define lname libfsntfs1
|
2017-02-14 21:31:07 +01:00
|
|
|
%define timestamp 20160418
|
2016-02-03 21:30:20 +01:00
|
|
|
Name: libfsntfs
|
|
|
|
Version: 0~%{timestamp}
|
2015-12-02 22:58:48 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library and tools to access the NTFS filesystem
|
|
|
|
License: LGPL-3.0+ and GFDL-1.3+
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
Url: https://github.com/libyal/libfsntfs/wiki
|
2016-02-03 21:30:20 +01:00
|
|
|
Source: https://github.com/libyal/libfsntfs/releases/download/%{timestamp}/%{name}-experimental-%{timestamp}.tar.gz
|
2015-12-02 22:58:48 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: pkgconfig(libbfio) >= 20130721
|
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20130904
|
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20130609
|
2016-02-03 21:30:20 +01:00
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20130609
|
2015-12-02 22:58:48 +01:00
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20130609
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20130609
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20130609
|
2017-02-14 21:31:07 +01:00
|
|
|
BuildRequires: pkgconfig(libcstring) >= 20150101
|
2015-12-02 22:58:48 +01:00
|
|
|
BuildRequires: pkgconfig(libcsystem) >= 20120425
|
2016-02-03 21:30:20 +01:00
|
|
|
BuildRequires: pkgconfig(libcthreads)
|
2015-12-02 22:58:48 +01:00
|
|
|
BuildRequires: pkgconfig(libfdatetime) >= 20130317
|
2016-02-03 21:30:20 +01:00
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20130904
|
|
|
|
BuildRequires: pkgconfig(libfwnt)
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20120425
|
2017-02-16 23:40:35 +01:00
|
|
|
#as of Feb 28, 2017, recent releases of the below all cause compile errors.
|
|
|
|
#BuildRequires: pkgconfig(libfdata)
|
|
|
|
#BuildRequires: pkgconfig(libfcache)
|
|
|
|
#BuildRequires: pkgconfig(libcerror) > 20170101
|
2015-12-02 22:58:48 +01:00
|
|
|
#not yet in OBS
|
2016-02-03 21:30:20 +01:00
|
|
|
#BuildRequires: pkgconfig(libfusn)
|
2015-12-02 22:58:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library and tools to access the New Technology File System (NTFS).
|
|
|
|
|
|
|
|
Note that this project currently only focuses on the analysis of the format.
|
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%package -n %{lname}
|
2017-02-14 21:31:07 +01:00
|
|
|
Summary: Library to access the New Technology File System (NTFS)
|
2015-12-02 22:58:48 +01:00
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%description -n %{lname}
|
2015-12-02 22:58:48 +01:00
|
|
|
libfsntfs is a library to access the New Technology File System (NTFS).
|
|
|
|
|
|
|
|
Note that this project currently only focuses on the analysis of the format.
|
|
|
|
|
|
|
|
%package tools
|
2017-02-14 21:31:07 +01:00
|
|
|
Summary: Tools to access the New Technology File System (NTFS)
|
2015-12-02 22:58:48 +01:00
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libfsntfs-tools is a project to access the NTFS filesystem
|
2016-02-03 21:30:20 +01:00
|
|
|
|
2015-12-02 22:58:48 +01:00
|
|
|
Note that this project currently only focuses on the analysis of the format.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libfsntfs
|
|
|
|
License: LGPL-3.0+ and GFDL-1.3+
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-02-03 21:30:20 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
%description devel
|
2016-02-03 21:30:20 +01:00
|
|
|
%{name} is a library to access the New Technology File System (NTFS).
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
2016-02-03 21:30:20 +01:00
|
|
|
applications that want to make use of %{name}.
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%package -n python-%{name}
|
2017-02-14 21:31:07 +01:00
|
|
|
Summary: Python 2 bindings for libfsntfs
|
2015-12-02 22:58:48 +01:00
|
|
|
License: LGPL-3.0+
|
2017-02-20 22:25:58 +01:00
|
|
|
Group: Development/Languages/Python
|
2016-02-03 21:30:20 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2015-12-02 22:58:48 +01:00
|
|
|
Requires: python
|
2017-02-14 21:31:07 +01:00
|
|
|
BuildRequires: pkgconfig(python2)
|
2016-02-03 21:30:20 +01:00
|
|
|
Provides: pyfsntfs = %{version}
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%description -n python-%{name}
|
2017-02-14 21:31:07 +01:00
|
|
|
Python 2 binding for libfsntfs, which can access the NTFS filesystem.
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python 3 bindings for libfsntfs
|
|
|
|
License: LGPL-3.0+
|
2017-02-20 22:25:58 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-02-14 21:31:07 +01:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Requires: python3
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
Provides: pyfsntfs = %{version}
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
Python 3 binding for libfsntfs, which can access the NTFS filesystem.
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
%prep
|
2016-02-03 21:30:20 +01:00
|
|
|
%setup -q -n libfsntfs-%{timestamp}
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
%build
|
2017-02-14 21:31:07 +01:00
|
|
|
%configure --disable-static --enable-wide-character-type --enable-python2 --enable-python3
|
2015-12-02 22:58:48 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2016-02-03 21:30:20 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%files -n %{lname}
|
2015-12-02 22:58:48 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog
|
2016-02-03 21:30:20 +01:00
|
|
|
%{_libdir}/libfsntfs.so.*
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
2016-02-03 21:30:20 +01:00
|
|
|
%{_bindir}/fsntfs*
|
|
|
|
%{_mandir}/man1/fsntfsinfo.1*
|
2015-12-02 22:58:48 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-02-03 21:30:20 +01:00
|
|
|
%{_includedir}/libfsntfs.h
|
|
|
|
%{_includedir}/libfsntfs/
|
|
|
|
%{_libdir}/libfsntfs.so
|
|
|
|
%{_libdir}/pkgconfig/libfsntfs.pc
|
|
|
|
%{_mandir}/man3/libfsntfs.3*
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2016-02-03 21:30:20 +01:00
|
|
|
%files -n python-%{name}
|
2015-12-02 22:58:48 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README
|
2016-02-03 21:30:20 +01:00
|
|
|
%{python_sitearch}/pyfsntfs.so
|
2015-12-02 22:58:48 +01:00
|
|
|
|
2017-02-14 21:31:07 +01:00
|
|
|
%files -n python3-%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
%{python3_sitearch}/pyfsntfs.so
|
|
|
|
|
2015-12-02 22:58:48 +01:00
|
|
|
%changelog
|