Группа :: Система/Библиотеки
Пакет: libytnef
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _name ytnef
%define rev %nil
Name: lib%_name
Version: 2.1.2
Release: alt1
Summary: TNEF Stream Parser Library
Group: System/Libraries
License: GPL-2.0
Url: https://github.com/Yeraze/%_name
Vcs: https://github.com/Yeraze/ytnef.git
Source: https://github.com/Yeraze/%_name/archive/v%version/%_name-%version%rev.tar.gz
BuildRequires: perl-MIME-tools
%description
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package -n %_name
Summary: TNEF Stream Reader
Group: Networking/Mail
Requires: %name = %version-%release
%description -n %_name
This package provides %_name utility to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%prep
%setup -n %_name-%version%rev
%build
%autoreconf
%configure --disable-static
%make_build
%install
%makeinstall_std includedir=%_includedir/%name
%check
pushd test-data
rm -rf data
export LD_LIBRARY_PATH=%buildroot%_libdir:${LD_LIBRARY_PATH}
./test.sh
popd
%files
%_libdir/%name.so.*
%doc README.md
%files devel
%_includedir/%name/
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%files -n %_name
%_bindir/ytnef
%_bindir/ytnefprint
%_bindir/ytnefprocess
%changelog
…
Полный changelog можно просмотреть здесь
%define rev %nil
Name: lib%_name
Version: 2.1.2
Release: alt1
Summary: TNEF Stream Parser Library
Group: System/Libraries
License: GPL-2.0
Url: https://github.com/Yeraze/%_name
Vcs: https://github.com/Yeraze/ytnef.git
Source: https://github.com/Yeraze/%_name/archive/v%version/%_name-%version%rev.tar.gz
BuildRequires: perl-MIME-tools
%description
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package -n %_name
Summary: TNEF Stream Reader
Group: Networking/Mail
Requires: %name = %version-%release
%description -n %_name
This package provides %_name utility to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%prep
%setup -n %_name-%version%rev
%build
%autoreconf
%configure --disable-static
%make_build
%install
%makeinstall_std includedir=%_includedir/%name
%check
pushd test-data
rm -rf data
export LD_LIBRARY_PATH=%buildroot%_libdir:${LD_LIBRARY_PATH}
./test.sh
popd
%files
%_libdir/%name.so.*
%doc README.md
%files devel
%_includedir/%name/
%_libdir/%name.so
%_pkgconfigdir/%name.pc
%files -n %_name
%_bindir/ytnef
%_bindir/ytnefprint
%_bindir/ytnefprocess
%changelog
…
Полный changelog можно просмотреть здесь