Mageia Bugzilla – Attachment 13212 Details for
Bug 30230
{PKG REQUEST} libb64 - Base64 Encoding/Decoding Routines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec
libb64.spec (text/plain), 2.09 KB, created by
Kristoffer Grundström
on 2022-03-31 22:34:36 CEST
(
hide
)
Description:
Proposal spec
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2022-03-31 22:34:36 CEST
Size:
2.09 KB
patch
obsolete
>Name: libb64 >Version: 1.2 >Release: %mkrel 1 >Summary: Tools for fast encoding/decoding data into and from a base64-encoded format >License: Public Domain >URL: http://libb64.sourceforge.net/ >Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.zip >BuildRequires: gcc-c++ >BuildRequires: make > >%description >Base64 uses a subset of displayable ASCII characters, and is therefore a useful >encoding for storing binary data in a text file, such as XML, or sending binary >data over text-only email. > >libb64 is a library of ANSI C routines for fast encoding/decoding data into and >from a base64-encoded format. C++ wrappers are included, as well as the source >code for standalone encoding and decoding executables. > >%package devel >Summary: Development files for %{name} ># Upstream only provides a static library >Provides: %{name}-static = %{version}-%{release} ># Does not need to require the base package as it is complete itself > >%description devel >The %{name}-devel package contains the library and header files for developing >applications that use %{name}. > >%package tools >Summary: %{name}-b64 binary provided by %{name} > >%description tools >This package provides the %{name}-b64 binary tool for encoding to and decoding >from the Base64 scheme. Please install the %{name}-devel package to develop >software using %{name}. > >%prep >%autosetup > ># Remove unneeded flags >sed -i '/-O3/ d' src/Makefile >sed -i '/pedantic/ d' src/Makefile > >%build >%set_build_flags >%make_build > >%install ># Upstream doesn't provide any install bits in the Makefile ># static lib >install -D -m 0644 -p src/libb64.a $RPM_BUILD_ROOT/%{_libdir}/libb64.a ># binary, rename to prevent conflict with coreutils binary >install -D -m 0755 -p base64/base64 $RPM_BUILD_ROOT/%{_bindir}/libb64-base64 ># headers >install -D -m 0644 -p -t $RPM_BUILD_ROOT/%{_includedir}/b64/ include/b64/* > ># Only static, so we don't need ldconfig scriptlets > >%files tools >%license LICENSE >%doc AUTHORS README >%{_bindir}/libb64-base64 > >%files devel >%license LICENSE >%{_includedir}/b64 >%{_libdir}/libb64.a
Name: libb64 Version: 1.2 Release: %mkrel 1 Summary: Tools for fast encoding/decoding data into and from a base64-encoded format License: Public Domain URL: http://libb64.sourceforge.net/ Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.src.zip BuildRequires: gcc-c++ BuildRequires: make %description Base64 uses a subset of displayable ASCII characters, and is therefore a useful encoding for storing binary data in a text file, such as XML, or sending binary data over text-only email. libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format. C++ wrappers are included, as well as the source code for standalone encoding and decoding executables. %package devel Summary: Development files for %{name} # Upstream only provides a static library Provides: %{name}-static = %{version}-%{release} # Does not need to require the base package as it is complete itself %description devel The %{name}-devel package contains the library and header files for developing applications that use %{name}. %package tools Summary: %{name}-b64 binary provided by %{name} %description tools This package provides the %{name}-b64 binary tool for encoding to and decoding from the Base64 scheme. Please install the %{name}-devel package to develop software using %{name}. %prep %autosetup # Remove unneeded flags sed -i '/-O3/ d' src/Makefile sed -i '/pedantic/ d' src/Makefile %build %set_build_flags %make_build %install # Upstream doesn't provide any install bits in the Makefile # static lib install -D -m 0644 -p src/libb64.a $RPM_BUILD_ROOT/%{_libdir}/libb64.a # binary, rename to prevent conflict with coreutils binary install -D -m 0755 -p base64/base64 $RPM_BUILD_ROOT/%{_bindir}/libb64-base64 # headers install -D -m 0644 -p -t $RPM_BUILD_ROOT/%{_includedir}/b64/ include/b64/* # Only static, so we don't need ldconfig scriptlets %files tools %license LICENSE %doc AUTHORS README %{_bindir}/libb64-base64 %files devel %license LICENSE %{_includedir}/b64 %{_libdir}/libb64.a
View Attachment As Raw
Actions:
View
Attachments on
bug 30230
: 13212 |
13213