Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:PerryWerneck
libfatfs
libfatfs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libfatfs.spec of Package libfatfs
# # spec file for package libfatfs # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: libfatfs Version: 0.15 Release: 0 Summary: Generic FAT Filesystem Module License: LGPL-3.0-only Group: System/Libraries URL: http://elm-chan.org/fsw/ff/00index_e.html Source: %{name}-%{version}.tar.xz Source1: Makefile Source2: dynamic.pc Source3: static.pc BuildRequires: gcc %description FatFs is a generic FAT/exFAT filesystem module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, RX and etc. %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) %define MINOR_VERSION %(echo %{version} | cut -d. -f2) %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} %package -n %{name}%{_libvrs} Summary: Generic FAT Filesystem Module %description -n %{name}%{_libvrs} FatFs is a generic FAT/exFAT filesystem module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, RX and etc. %package devel Summary: Generic FAT Filesystem Module Group: Development/Libraries/C and C++ Requires: %{name}%{_libvrs} = %{version} %description devel FatFs is a generic FAT/exFAT filesystem module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, RX and etc. %prep %setup cp %{S:1} . %build make %install mkdir -p %{buildroot}/%{_libdir} install --mode=644 libfatfs.a %{buildroot}/%{_libdir} install --mode=755 libfatfs.so.0.15 %{buildroot}/%{_libdir} ln -s libfatfs.so.0.15 %{buildroot}/%{_libdir}/libfatfs.so mkdir -p %{buildroot}/%{_libdir}/pkgconfig install --mode=644 %{S:3} %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc install --mode=644 %{S:3} %{buildroot}/%{_libdir}/pkgconfig/%{name}-static.pc mkdir -p %{buildroot}/%{_includedir}/fatfs install --mode=644 source/diskio.h %{buildroot}/%{_includedir}/fatfs install --mode=644 source/ffconf.h %{buildroot}/%{_includedir}/fatfs install --mode=644 source/ff.h %{buildroot}/%{_includedir}/fatfs %files -n %{name}%{_libvrs} %defattr(-,root,root) %license LICENSE.txt %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/fatfs %{_includedir}/fatfs/*.h %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor