Skip to content

Commit

Permalink
Added spec file, minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyhub committed May 31, 2016
1 parent 7f14634 commit c15c8e7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_PREREQ(2.69)
AC_PREREQ(2.63)
AC_INIT(fuse-ptfs, 1.0, https://github.com/joeyhub/fuse-ptfs)
AM_INIT_AUTOMAKE(fuse-ptfs, 1.0)
AC_CONFIG_SRCDIR([src/fuse_ptfs.c])
Expand Down
39 changes: 39 additions & 0 deletions fuse-ptfs.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Name: fuse-ptfs
Version: 1.0.0
Release: 1%{?dist}
Summary: Allows mounting partition tables via fuse.
License: GPL
URL: https://github.com/joeyhub/fuse-ptfs/
Source0: fuse-ptfs-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: fuse-devel
BuildRequires: parted-devel
BuildRequires: autoconf
BuildRequires: automake
Requires: fuse
Requires: parted

%description

%prep
%setup -c -q

%build
aclocal
autoconf
automake --add-missing
%configure --prefix=%{_prefix}
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%{_bindir}/fuse-ptfs

%changelog

1 change: 1 addition & 0 deletions src/fuse_ptfs_filesys.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ int fuse_ptfs_filesys_getattr(const char* apPath, struct stat* apStat)
return -ENOENT;

// Note: I am unsure if fuse applies permissions with this or how to tie it into flags if need be.
// Note: This does not consider the permissions of the underlying file.
apStat->st_mode = S_IFREG | 0600;
apStat->st_nlink = 1;
apStat->st_size = tpPartition->mLength;
Expand Down

0 comments on commit c15c8e7

Please sign in to comment.